错误重复的jar条目[android / support / v4 / media / MediaBrowserCompat $ a.class]

时间:2019-03-20 09:32:43

标签: android jar sdk android-gradle

我已经尝试了StackOverflow上几乎所有的解决方案,我最近将SDK从27更新到了28,现在在部署我的应用程序时,如果我回滚更新,则会给我这个错误,它使我在merged.dir值中出现资源链接错误我的应用正常运行之前的XML

我的App Gradle构建为

 buildscript {

    repositories {
        google()
        jcenter()
        /*maven {
            url 'https://maven.fabric.io/public'
        }*/

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.2'
        classpath 'com.google.gms:google-services:4.0.1'
        //classpath 'io.fabric.tools:gradle:1.25.4'



        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

    allprojects {
        repositories {
            jcenter()
            google()
            maven {
                url "https://maven.java.net/content/groups/public/"
            }
            maven { url "https://jitpack.io" }
        }
    }

    task clean(type: Delete) {
        delete rootProject.buildDir
    }

我的项目gradle构建以前是我的gradle工具版本为com.android.tools.build:gradle:3.1.4

companiesNames: Map<number, string> = new Map<number, string>();

0 个答案:

没有答案