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

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

Click this to see the output

Please help me to solve this?



Solution 1:[1]

Here maybe the issue will be with your Maps Api key, remove all the restrictions of your api key from Google Cloud Platform , just like this Edit Maps Api

Solution 2:[2]

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.

Solution 3:[3]

add in dependencies:

google_maps_flutter_web: ^0.3.2+2

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Maqsood
Solution 2 il_boga
Solution 3 Rodolfo Gav