Home > Net >  "TargetPlatform.windows is not yet supported by the maps plugin" - How to solve this
"TargetPlatform.windows is not yet supported by the maps plugin" - How to solve this

Time:03-17

Im just trying to get google maps displayed on my emulator and i also used google_maps_flutter package but TargetPlatform.windows is not yet supported by the maps plugin is displayed instead of the map, Im not receiving any error in the console. I have added the meta-data entry containing the API key to AndroidManifest.xml file in android/app/src/main

Edit Maps Api

CodePudding user response:

Either you're trying to run your project on Windows platform (meaning you did not choose an Android Emulator or phone in the run device menu, see example below) enter image description here

or, if your screenshot is from a Android device, there's something messed up with your project configuration. You can try running flutter create . in the terminal to recreate your project, or you can create a new one from the scratch (watch out for which platform you activate, see below) and then import the code.

enter image description here

Screenshots are from Android Studio.

  • Related