Android The import com.google cannot be resolved

前端 未结 14 1545
猫巷女王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:05

    If you are using Android studio you may be missing to add gradle to your project.

    Add specific play service you want. Here you may want to compile

    com.google.android.gms:play-services-location:10.2.1
    

    Add this to your build.gradle app module in dependencies.

提交回复
热议问题