cro*_*ame 6 maps android gradle
当我点击时,Build -> Rebuild Project我收到此错误.

地图上的Everyrithing很好.我成功同步build.gradle和清理项目没有错误.我可以在我的设备上运行地图.
的build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.0'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
dependencies {
compile 'com.android.support:support-v4:20.0.0'
compile 'com.google.android.gms:play-services:5.0.77'
}
android {
compileSdkVersion 20
buildToolsVersion '20'
defaultConfig {
minSdkVersion 10
targetSdkVersion 20
}
}
Run Code Online (Sandbox Code Playgroud)
的Manifest.xml
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
Run Code Online (Sandbox Code Playgroud)
google-play-services_lib您在settings.gradle文件中有一个引用。除非您的项目根目录中名为“google-play-services_lib”的目录中有一个模块(我认为您没有),否则请从您的设置文件中删除此位。添加对 Play Services 的依赖项的正确方法不是将其添加到设置文件中,而是通过build.gradle文件块compile中的语句,就像您已经完成的那样:dependencies
compile 'com.google.android.gms:play-services:5.0.77'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6394 次 |
| 最近记录: |