【发布时间】:2015-03-06 02:13:13
【问题描述】:
我在 Android Studio 中遇到以下错误:
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(LocationServices.API).build();
我已将其放入我的清单中,
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
和 compile 'com.google.android.gms:play-services:6.5.87' 在我的 gradle 依赖项中。
我也下载了所需的 sdk 文件。
为什么我仍然会收到此错误?
【问题讨论】:
-
你是否使用了invalidate and clean and rebuild project?
标签: android android-studio google-api