所以我在Android Studio v 0.3.6上,我遇到了Google Play服务的问题.我已经在我的项目中使用Admob jar但我必须更新它,所以我尝试通过说明添加它们.我的项目编译正常但是当我尝试运行一个活动时,我收到以下错误:
Didn't find class "com.google.ads.AdView" on path: /data/app/com.mre. example-1. apk
请参阅此处的完整错误输出.我的build.gradle的相关部分:
apply plugin: 'android' dependencies { compile 'com.android.support:support-v4:13.0.+' compile 'com.google.android.gms:play-services:4.0.30' //compile project(':libraries:google-play-services_lib') //compile files('libs/google-play-services.jar') ... } android { compileSdkVersion 18 buildToolsVersion '18.0.1' defaultConfig { minSdkVersion 8 targetSdkVersion 18 } }
这是我的清单
...
这是布局:
... ...
在过去的两天里,我尝试了将GPS库添加到我的项目中的每一种变化,只需要将jar添加到无.起初我从我的/ libs中删除了jar,并将所需的行添加到我的build.gradle中,但这也没有用.我提前感谢您提供的任何帮助.