This app won't run unless you update Google Play services error

后端 未结 10 2011
半阙折子戏
半阙折子戏 2020-12-03 04:39

I\'m kind of lost right now. I\'m implementing an Android application using Google maps.

In order to make it work I followed some tutorials which were pretty efficie

10条回答
  •  不思量自难忘°
    2020-12-03 05:29

    I Solved this problem by:

    1- Make sure "Google Play Services" is installed in SDK tools, Like this image:

    2- Make sure AndroidManifest.xml file contain this lines:

    
    
    

    3- In dependencies of build.gradle add this line:

    classpath 'com.google.android.gms:play-services-maps:17.0.0'
    

    Note: you may need change version of play-services-maps from 17 to latest, but 17 is latest in Aug 2019 ...

    As this image:

    Don not forget to rebuild the project (if you use flutter do this command in terminal flutter clean)

    Then you will see the map is working on emulator:

提交回复
热议问题