Android 库梯度的重复条目导致应用程序未运行
我搜索了很多,但没有找到问题的任何解决方案,我尝试在任何设备上运行我的应用程序,但我得到了以下错误: 它在com.github.bumptech.glide:glide:3.5.2上抛出了一个错误,但是它只使用了一次,它的类是如何重复的。我以前使用相同的依赖项运行这个应用程序,没有任何问题,但在运行应用程序时突然出现了这个错误 app.gradle文件Android 库梯度的重复条目导致应用程序未运行,android,gradle,android-gradle-2.2,Android,Gradle,Android Gradle 2.2,我搜索了很多,但没有找到问题的任何解决方案,我尝试在任何设备上运行我的应用程序,但我得到了以下错误: 它在com.github.bumptech.glide:glide:3.5.2上抛出了一个错误,但是它只使用了一次,它的类是如何重复的。我以前使用相同的依赖项运行这个应用程序,没有任何问题,但在运行应用程序时突然出现了这个错误 app.gradle文件 apply plugin: 'com.android.application' android { compileSdkVersion 25
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.3'
defaultConfig {
applicationId "info.androidhive.firebase"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.android.support:design:25.1.0'
compile 'com.firebaseui:firebase-ui-database:1.1.1'
compile 'com.firebaseui:firebase-ui-storage:1.1.1'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.github.bumptech.glide:glide:3.5.2'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.crystal:crystalrangeseekbar:1.1.1'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
试着用这句话:
enforceUniquePackageName false
在gradle中的buildtoolVersion之后浏览到项目的“libs”目录,并删除冗余的“glide.x.x”,该目录由于冗余而导致错误。如何编译'com.github.bumptech.glide:glide:3.8.0'?我认为是它导致了问题。我尝试从cmd中清除gradlew,但在线程中收到此异常“main”java.util.zip.ZipException:打开zip文件时出错。
com.firebaseui
使用2.0.0
而不是1.1.1
和支持:设计:25.3.1'
我删除了此库,但仍然会出现错误。