我有一个在旧版本的Android Studio中构建的项目,并且我正在尝试在新版本中进行重建。 但是它把我抛出这个错误。我不明白为什么要来...?
程序类型已存在:org.apache.commons.logging.Log 消息{种类=错误,文本=程序类型已存在:org.apache.commons.logging.Log,来源= [未知源文件],工具名称= Optional.of(D8)}
任何帮助将不胜感激。
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
packagingOptions {
exclude 'proguard-project.txt'
exclude 'project.properties'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/DEPENDENCIES'
}
defaultConfig {
applicationId "com.bgsltd.filecommande"
minSdkVersion 16
targetSdkVersion 27
versionCode 11
versionName "1.11"
}
signingConfigs {
release
config
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
lintOptions {
abortOnError false
}
flavorDimensions "mode"
productFlavors {
fdroid {
buildConfigField "boolean", "IS_VERSION_FDROID", "true"
signingConfig signingConfigs.config
dimension "mode"
}
play {
buildConfigField "boolean", "IS_VERSION_FDROID", "false"
signingConfig signingConfigs.config
dimension "mode"
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testImplementation 'junit:junit:4.12'
implementation project(':StickyHeadersRecyclerView')
implementation 'com.readystatesoftware.systembartint:systembartint:1.0.3'
implementation 'com.android.support:design:27.1.0'
implementation 'com.github.junrar:junrar:0.7'
implementation 'org.apache.commons:commons-compress:1.17'
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support:cardview-v7:27.1.0'
// Google Play Services
playImplementation 'com.google.android.gms:play-services-plus:11.6.0'
implementation 'org.sufficientlysecure:donations:2.3'
playImplementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
implementation 'com.github.clans:fab:1.6.1'
implementation('com.github.afollestad.material-dialogs:core:0.8.5.3@aar') {
transitive = true
}
implementation 'com.google.firebase:firebase-ads:11.6.0'
implementation 'com.google.android.gms:play-services-ads:11.6.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.8.0@aar') {
transitive = true;
}
implementation 'com.android.support:multidex:1.0.3'
}
答案 0 :(得分:-1)
对此进行一次更改....添加multiDexEnabled = true;
defaultConfig {
applicationId "com.bgsltd.filecommande"
minSdkVersion 16
targetSdkVersion 27
versionCode 11
versionName "1.11"
multiDexEnabled true
}