本文介紹了導(dǎo)入 com.google.android.gms.* 時(shí)出錯(cuò);的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
我正在嘗試在 link
需要導(dǎo)入這些:
import com.google.android.gms.common.ConnectionResult;導(dǎo)入 com.google.android.gms.common.GooglePlayServicesUtil;導(dǎo)入 com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks;導(dǎo)入 com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener;導(dǎo)入 com.google.android.gms.location.ActivityRecognitionClient;
我無法編譯,因?yàn)?eclipse 無法識別
"com.google.android.gms."......
還將 SDK 和 google API 更新到最新 (4.3)
仍然無法導(dǎo)入包.
解決方案
按照這個(gè)指南 設(shè)置 Google Play 服務(wù) SDK.它是一個(gè)客戶端庫,您必須從 SDK 管理器中獲取.下載后,將庫添加為項(xiàng)目.
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.
這篇關(guān)于導(dǎo)入 com.google.android.gms.* 時(shí)出錯(cuò);的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!