Java 导入com.google.android.gms时出错。*;

Java 导入com.google.android.gms时出错。*;,java,android,sdk,google-api,importerror,Java,Android,Sdk,Google Api,Importerror,我正在尝试在中实施解决方案 需要导入以下内容: import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.GooglePlayServicesUtil; import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; import com.google.androi

我正在尝试在中实施解决方案

需要导入以下内容:

import com.google.android.gms.common.ConnectionResult;  
import com.google.android.gms.common.GooglePlayServicesUtil;
import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; 
import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; import com.google.android.gms.location.ActivityRecognitionClient;
我无法编译,因为eclipse无法识别

 "com.google.android.gms."......
还将SDK和google API更新为最新版本(4.3)

仍然无法导入软件包。

按照此步骤设置Google Play Services SDK。它是一个客户端库,您必须从SDK管理器获取。下载后,将库添加为项目

  • 将Google Play服务作为
    C:\adt-bundle-windows-x86\u 64-20130729\adt-bundle-windows-x86\u 64-20130729\sdk\extras\Google\Google\u Play\u服务导入

  • 选择libproject

  • 选择您的项目,转到属性,然后在Android下添加Google Play服务库


  • 注意:您必须从SDK管理器安装Google Play服务。

    要添加到所有答案中,请确保main项目和library项目中的android-support-v4.jar相同。如果发现它们不同,库项目JAR将无法添加到apk中,您可以获取类未找到错误。

    库GMS是否在您的构建路径中?thak you man,但我成功了:)