Android上的进口com.google不能得到解决 [英] Android The import com.google cannot be resolved

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

问题描述

我想测试Android开发的LocationService例如按下面的链接<一个href="http://developer.android.com/training/location/retrieve-current.html">http://developer.android.com/training/location/retrieve-current.html.当时,错误信息告诉我,对于以下5条线进口com.google解决不了。我真的很困惑该如何解决这个问题。

 进口com.google.android.gms.common.ConnectionResult;
进口com.google.android.gms.common.GooglePlayServicesClient;
进口com.google.android.gms.common.GooglePlayServicesUtil;
进口com.google.android.gms.location.LocationClient;
进口com.google.android.gms.location.LocationListener;
进口com.google.android.gms.location.LocationRequest;
 

解决方案

您将需要谷歌播放服务SDK在Eclipse和导入谷歌播放服务配置为图书馆将关闭此错误。

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;

解决方案

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天全站免登陆