首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >已存在的程序类型: org.apache.commons.logging.Log

已存在的程序类型: org.apache.commons.logging.Log
EN

Stack Overflow用户
提问于 2018-07-24 04:14:05
回答 1查看 1.7K关注 0票数 2

我有一个用旧版本的Android构建的项目,我正在尝试用新版本进行重建。但它让我犯了这个错误。我不知道为什么会来.?

程序类型已经出现: org.apache.commons.logging.Log消息{kind=ERROR,text=Program类型已经出现: org.apache.commons.logging.Log,sources=Unknown源文件,工具name=Optional.of(D8)}

任何帮助都将不胜感激。

代码语言:javascript
复制
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'
    }
EN

回答 1

Stack Overflow用户

发布于 2018-09-19 10:07:22

这一次的改变..。添加multiDexEnabled= true;

defaultConfig {

代码语言:javascript
复制
        applicationId "com.bgsltd.filecommande"
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 11
        versionName "1.11"
        multiDexEnabled true
    }
票数 -2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51490363

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档