apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
defaultConfig {
minSdkVersion 13
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_6
targetCompatibility JavaVersion.VERSION_1_6
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/BCKEY.DSA'
exclude 'AUTHORS'
}
}
dependencies {
provided fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.firebase:firebase-client-android:2.3.1+'
compile 'com.google.firebase:firebase-crash:9.0.0'
compile 'com.google.android.gms:play-services:9.0.0'
compile 'com.jakewharton:butterknife:8.0.1'
}
答案 0 :(得分:0)
这个问题可以通过清理项目,从build.gradle中的依赖项中删除一些未使用的库和方法来解决,或者通过添加multidex支持来解决。
defaultConfig {
// Enabling multidex support.
multiDexEnabled true
minSdkVersion 13
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
答案 1 :(得分:0)
这可能是由于以下原因:
具体说明您在依赖项中添加的类。像
compile' com.google.android.gms:play-services-maps:8.4.0'
不喜欢compile 'com.google.android.gms:play-services:+'