Android 导入com.google 无法解决 [英] Android The import com.google cannot be resolved

查看:26
本文介绍了Android 导入com.google 无法解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照以下链接测试 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 无法解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆