Android The import com.google cannot be resolved

前端 未结 14 1444
猫巷女王i
猫巷女王i 2020-12-09 04:41

I\'m trying to test LocationService example of Android developer as per following link http://developer.android.com/training/location/retrieve-current.html. At that time, er

14条回答
  •  时光说笑
    2020-12-09 05:20

    If you're using Android Studio:

    Right click on your app folder -> Open Module Settings -> Dependencies -> Click on the plus button -> Choose library dependency -> Search for "play-services" -> Double click on the com.google.android.gms:play-services

    Press Ok and wait for Gradle to rebuild.

提交回复
热议问题