本文介紹了導入 com.google.android.gms.* 時出錯;的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我正在嘗試在 link
需要導入這些:
import com.google.android.gms.common.ConnectionResult;導入 com.google.android.gms.common.GooglePlayServicesUtil;導入 com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks;導入 com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener;導入 com.google.android.gms.location.ActivityRecognitionClient;
我無法編譯,因為 eclipse 無法識別
"com.google.android.gms."......
還將 SDK 和 google API 更新到最新 (4.3)
仍然無法導入包.
解決方案
按照這個指南 設置 Google Play 服務 SDK.它是一個客戶端庫,您必須從 SDK 管理器中獲取.下載后,將庫添加為項目.
I am trying to implement the solution in link
Require to import these:
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;
i cannot compile because eclipse does not recognize
"com.google.android.gms."......
Have also updated the SDK and the google API to the latest (4.3)
Still not able to import the package.
解決方案
Follow this guide to setup the Google Play Services SDK. It's a client library which you have to get from the SDK Manager. After you downloaded it, add the library as a project.
這篇關于導入 com.google.android.gms.* 時出錯;的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!