我正在尝试按照以下链接测试 Android 开发人员的 LocationService 示例 http://developer.android.com/training/location/retrieve-current.html.当时,错误消息显示无法解析导入 com.google "以下 5 行.我真的很困惑如何解决这个问题.
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, error message show me that "The import com.google cannot be resolved" for following 5 lines. I'm really confused how to solve this problem.
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesClient;
import com.google.android.gms.common.GooglePlayServicesUtil;
import com.google.android.gms.location.LocationClient;
import com.google.android.gms.location.LocationListener;
import com.google.android.gms.location.LocationRequest;
您需要在 Eclipse 中配置 Google Play 服务 SDK 并导入 google play 服务,因为库将消除此错误.
You will need the Google Play Services SDK configured within Eclipse and import google play services as library will dismiss this error .
这篇关于Android 导入com.google 无法解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!