Android 如何调试D8错误,例如;类型X被引用为Y";中的接口;?

Android 如何调试D8错误,例如;类型X被引用为Y";中的接口;?,android,gradle,android-d8,Android,Gradle,Android D8,现在我有一个项目有3个模块,一个是app模块,一个是streaming模块,它使用自己的base模块 当我构建这个项目时,它总是在app:transformclasses with dexbuilderfordev2debug中失败,它总是这样: AbortException:com.google.android.gms.internal.measurements.zz类型被引用为com.google.android.gms.internal.measurements.zz的接口 我的应用程序模

现在我有一个项目有3个模块,一个是
app
模块,一个是
streaming
模块,它使用自己的
base
模块

当我构建这个项目时,它总是在
app:transformclasses with dexbuilderfordev2debug中失败,它总是这样:

AbortException:com.google.android.gms.internal.measurements.zz类型被引用为com.google.android.gms.internal.measurements.zz的接口

我的
应用程序
模块的渐变如下所示:

...
ext {
    supportLibVersion = '28.0.0';
    gmsVersion = '15.0.0';
}

com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation files('libs/libadapterinmobi.jar')
    implementation project(':streaming')

    implementation 'com.twitter.sdk.android:twitter-core:3.3.0'
    implementation('com.crashlytics.sdk.android:crashlytics:2.9.6@aar') {
        transitive = true
    }
    implementation('com.redbricklane.zapr:zapr-sdk:3.2.1@aar') {
        transitive = true;
    }
    implementation 'com.redbricklane.zapr.admob:zapr-admob-adapter:2.1@aar'
    implementation "com.android.support:appcompat-v7:$supportLibVersion"
    implementation "com.android.support:customtabs:$supportLibVersion"
    implementation "com.android.support:design:$supportLibVersion"
    implementation "com.android.support:cardview-v7:$supportLibVersion"
    implementation "com.android.support:recyclerview-v7:$supportLibVersion"
    implementation "com.android.support:palette-v7:$supportLibVersion"
    implementation "com.android.support:support-v4:$supportLibVersion"

    implementation "com.google.android.gms:play-services-location:16.0.0"
    implementation "com.google.android.gms:play-services-analytics:16.0.4"
    implementation "com.google.android.gms:play-services-ads:17.1.2"
    implementation "com.google.android.gms:play-services-auth:16.0.1"

    implementation "com.google.firebase:firebase-core:16.0.8"
    implementation "com.google.firebase:firebase-inappmessaging-display:17.1.1"
    implementation "com.google.firebase:firebase-messaging:17.5.0"
    implementation "com.google.firebase:firebase-auth:16.2.0"
    implementation "com.google.firebase:firebase-database:16.1.0"
    implementation "com.google.firebase:firebase-config:16.4.1"
    implementation "com.google.firebase:firebase-appindexing:17.1.0"

    implementation 'com.android.support:multidex:1.0.3'

    implementation 'com.github.bumptech.glide:glide:4.9.0'
    implementation 'com.github.bumptech.glide:annotations:4.9.0'
    implementation 'com.github.bumptech.glide:volley-integration:4.2.0@aar'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'

    implementation('com.facebook.android:facebook-android-sdk:4.30.0') {
        exclude group: 'com.google'
    }
    implementation 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.4.1'
    implementation 'com.melnykov:floatingactionbutton:1.3.0'
    implementation 'com.googlecode.mp4parser:isoparser:1.1.22'
    implementation 'me.relex:circleindicator:1.2.1@aar'
    implementation 'com.android.volley:volley:1.1.1'
    implementation 'com.squareup.okhttp3:okhttp:3.10.0'
    implementation 'com.mixpanel.android:mixpanel-android:4.9.8'
    implementation 'com.flurry.android:analytics:6.4.2'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'io.github.luizgrp.sectionedrecyclerviewadapter:sectionedrecyclerviewadapter:1.0.4'
    implementation 'com.danikula:videocache:2.7.0'
    implementation 'com.inmobi.monetization:inmobi-ads:7.2.1'
    implementation 'commons-io:commons-io:2.5'
    implementation 'com.github.livefront:bridge:v1.1.3'
    implementation 'frankiesardo:icepick:3.2.0'
    annotationProcessor 'frankiesardo:icepick-processor:3.2.0'
}
...
...
androidExtensions {
    experimental = true
}

com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    //implementation files('libs/libadapterinmobi.jar')
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.support:exifinterface:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:customtabs:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support.constraint:constraint-layout-solver:1.1.3'
    implementation 'com.android.volley:volley:1.1.1'

    implementation 'android.arch.lifecycle:extensions:1.1.1'
    implementation 'android.arch.lifecycle:viewmodel:1.1.1'
    implementation 'android.arch.lifecycle:livedata:1.1.1'
    implementation 'android.arch.persistence.room:runtime:1.1.1'
    implementation 'android.arch.paging:runtime:1.0.1'


    implementation ("com.facebook.android:facebook-core:4.28.0") {
        exclude group: 'com.google'
    }

    implementation('com.crashlytics.sdk.android:crashlytics:2.9.6@aar') {
        transitive = true
    }

    //implementation 'com.google.firebase:firebase-core:16.0.8'
    implementation 'com.google.firebase:firebase-invites:16.1.1'
    //implementation 'com.google.firebase:firebase-messaging:17.5.0'
    //implementation 'com.google.firebase:firebase-dynamic-links:16.1.8'
    implementation 'com.google.android.gms:play-services-auth:16.0.1'
    implementation 'com.google.android.gms:play-services-location:16.0.0'
    implementation 'com.google.android.exoplayer:exoplayer:2.9.1'
    implementation 'com.google.android.exoplayer:extension-rtmp:2.9.1'
    implementation 'com.google.code.gson:gson:2.8.2'

    implementation 'com.github.bumptech.glide:glide:4.9.0'
    implementation 'com.github.bumptech.glide:okhttp3-integration:4.9.0'

    implementation 'com.squareup.okhttp3:okhttp:3.10.0'
    implementation 'com.squareup.picasso:picasso:2.5.2'

    implementation 'com.intuit.ssp:ssp-android:1.0.5'
    implementation 'com.intuit.sdp:sdp-android:1.0.5'

    implementation 'com.vinaysshenoy:mugen:1.0.2'

    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

    implementation 'com.github.florent37:viewtooltip:1.1.6'

    implementation 'com.karumi:dexter:5.0.0'

    implementation 'com.android.billingclient:billing:1.2'

    implementation 'me.saket:better-link-movement-method:2.2.0'

    implementation 'com.makeramen:roundedimageview:2.3.0'

    implementation 'com.github.yalantis:ucrop:2.2.2'

    implementation 'com.robinhood.ticker:ticker:2.0.1'

    implementation project(':playtrivia-base')
    //implementation project(':stepbarview')

    annotationProcessor "com.github.bumptech.glide:compiler:4.9.0"
    annotationProcessor "android.arch.persistence.room:compiler:1.1.1"

    testImplementation 'junit:junit:4.12'

    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

    api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
repositories {
    maven { url "http://dl.bintray.com/amulyakhare/maven" }
    maven { url "https://jitpack.io" }
    mavenCentral()
}
...
而我的
流媒体
模块的gradle文件如下所示:

...
ext {
    supportLibVersion = '28.0.0';
    gmsVersion = '15.0.0';
}

com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation files('libs/libadapterinmobi.jar')
    implementation project(':streaming')

    implementation 'com.twitter.sdk.android:twitter-core:3.3.0'
    implementation('com.crashlytics.sdk.android:crashlytics:2.9.6@aar') {
        transitive = true
    }
    implementation('com.redbricklane.zapr:zapr-sdk:3.2.1@aar') {
        transitive = true;
    }
    implementation 'com.redbricklane.zapr.admob:zapr-admob-adapter:2.1@aar'
    implementation "com.android.support:appcompat-v7:$supportLibVersion"
    implementation "com.android.support:customtabs:$supportLibVersion"
    implementation "com.android.support:design:$supportLibVersion"
    implementation "com.android.support:cardview-v7:$supportLibVersion"
    implementation "com.android.support:recyclerview-v7:$supportLibVersion"
    implementation "com.android.support:palette-v7:$supportLibVersion"
    implementation "com.android.support:support-v4:$supportLibVersion"

    implementation "com.google.android.gms:play-services-location:16.0.0"
    implementation "com.google.android.gms:play-services-analytics:16.0.4"
    implementation "com.google.android.gms:play-services-ads:17.1.2"
    implementation "com.google.android.gms:play-services-auth:16.0.1"

    implementation "com.google.firebase:firebase-core:16.0.8"
    implementation "com.google.firebase:firebase-inappmessaging-display:17.1.1"
    implementation "com.google.firebase:firebase-messaging:17.5.0"
    implementation "com.google.firebase:firebase-auth:16.2.0"
    implementation "com.google.firebase:firebase-database:16.1.0"
    implementation "com.google.firebase:firebase-config:16.4.1"
    implementation "com.google.firebase:firebase-appindexing:17.1.0"

    implementation 'com.android.support:multidex:1.0.3'

    implementation 'com.github.bumptech.glide:glide:4.9.0'
    implementation 'com.github.bumptech.glide:annotations:4.9.0'
    implementation 'com.github.bumptech.glide:volley-integration:4.2.0@aar'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'

    implementation('com.facebook.android:facebook-android-sdk:4.30.0') {
        exclude group: 'com.google'
    }
    implementation 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.4.1'
    implementation 'com.melnykov:floatingactionbutton:1.3.0'
    implementation 'com.googlecode.mp4parser:isoparser:1.1.22'
    implementation 'me.relex:circleindicator:1.2.1@aar'
    implementation 'com.android.volley:volley:1.1.1'
    implementation 'com.squareup.okhttp3:okhttp:3.10.0'
    implementation 'com.mixpanel.android:mixpanel-android:4.9.8'
    implementation 'com.flurry.android:analytics:6.4.2'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'io.github.luizgrp.sectionedrecyclerviewadapter:sectionedrecyclerviewadapter:1.0.4'
    implementation 'com.danikula:videocache:2.7.0'
    implementation 'com.inmobi.monetization:inmobi-ads:7.2.1'
    implementation 'commons-io:commons-io:2.5'
    implementation 'com.github.livefront:bridge:v1.1.3'
    implementation 'frankiesardo:icepick:3.2.0'
    annotationProcessor 'frankiesardo:icepick-processor:3.2.0'
}
...
...
androidExtensions {
    experimental = true
}

com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    //implementation files('libs/libadapterinmobi.jar')
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.support:exifinterface:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:customtabs:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support.constraint:constraint-layout-solver:1.1.3'
    implementation 'com.android.volley:volley:1.1.1'

    implementation 'android.arch.lifecycle:extensions:1.1.1'
    implementation 'android.arch.lifecycle:viewmodel:1.1.1'
    implementation 'android.arch.lifecycle:livedata:1.1.1'
    implementation 'android.arch.persistence.room:runtime:1.1.1'
    implementation 'android.arch.paging:runtime:1.0.1'


    implementation ("com.facebook.android:facebook-core:4.28.0") {
        exclude group: 'com.google'
    }

    implementation('com.crashlytics.sdk.android:crashlytics:2.9.6@aar') {
        transitive = true
    }

    //implementation 'com.google.firebase:firebase-core:16.0.8'
    implementation 'com.google.firebase:firebase-invites:16.1.1'
    //implementation 'com.google.firebase:firebase-messaging:17.5.0'
    //implementation 'com.google.firebase:firebase-dynamic-links:16.1.8'
    implementation 'com.google.android.gms:play-services-auth:16.0.1'
    implementation 'com.google.android.gms:play-services-location:16.0.0'
    implementation 'com.google.android.exoplayer:exoplayer:2.9.1'
    implementation 'com.google.android.exoplayer:extension-rtmp:2.9.1'
    implementation 'com.google.code.gson:gson:2.8.2'

    implementation 'com.github.bumptech.glide:glide:4.9.0'
    implementation 'com.github.bumptech.glide:okhttp3-integration:4.9.0'

    implementation 'com.squareup.okhttp3:okhttp:3.10.0'
    implementation 'com.squareup.picasso:picasso:2.5.2'

    implementation 'com.intuit.ssp:ssp-android:1.0.5'
    implementation 'com.intuit.sdp:sdp-android:1.0.5'

    implementation 'com.vinaysshenoy:mugen:1.0.2'

    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

    implementation 'com.github.florent37:viewtooltip:1.1.6'

    implementation 'com.karumi:dexter:5.0.0'

    implementation 'com.android.billingclient:billing:1.2'

    implementation 'me.saket:better-link-movement-method:2.2.0'

    implementation 'com.makeramen:roundedimageview:2.3.0'

    implementation 'com.github.yalantis:ucrop:2.2.2'

    implementation 'com.robinhood.ticker:ticker:2.0.1'

    implementation project(':playtrivia-base')
    //implementation project(':stepbarview')

    annotationProcessor "com.github.bumptech.glide:compiler:4.9.0"
    annotationProcessor "android.arch.persistence.room:compiler:1.1.1"

    testImplementation 'junit:junit:4.12'

    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

    api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
repositories {
    maven { url "http://dl.bintray.com/amulyakhare/maven" }
    maven { url "https://jitpack.io" }
    mavenCentral()
}
...
大多数关于这个错误的帖子都可以在这里和github repos的发布页面上找到,所有这些帖子都建议在其gradle包含代码中排除
com.google
。这里的问题是,我不知道该将该排除放入哪一个,因为我不知道哪一个使用
com.google.android.gms.internal.measures.

编辑:我忘了提到那些帖子中的所有其他解决方案都涉及将所有
Firebase
play services
repo更新为最新版本。这对我不起作用

项目级的
androidDependencies
Gradle任务也没有帮助(当我搜索
internal
时,我没有点击)


有了这些,我怎么开始调试呢?

嗨,Gensoukyou1337,你解决问题了吗?如果是,是什么?