:app:checkDebugAarMetadata Your project has set `android.useAndroidX=true`, but configuration `:app:
Posted 彬sir哥
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了:app:checkDebugAarMetadata Your project has set `android.useAndroidX=true`, but configuration `:app:相关的知识,希望对你有一定的参考价值。
运行后的报错提示:
:app:checkDebugAarMetadata
Your project has set `android.useAndroidX=true`, but configuration `:app:debugRuntimeClasspath` still contains legacy support libraries, which may cause runtime issues.
This behavior will not be allowed in Android Gradle plugin 8.0.
Please use only AndroidX dependencies or set `android.enableJetifier=true` in the `gradle.properties` file to migrate your project to AndroidX (see https://developer.android.com/jetpack/androidx/migrate for more info).
The following legacy support libraries are detected:
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-annotations:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-compat:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:collections:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-compat:28.0.0 -> android.arch.lifecycle:runtime:1.1.1
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-compat:28.0.0 -> android.arch.lifecycle:runtime:1.1.1 -> android.arch.lifecycle:common:1.1.1
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-compat:28.0.0 -> android.arch.lifecycle:runtime:1.1.1 -> android.arch.core:common:1.1.1
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-compat:28.0.0 -> com.android.support:versionedparcelable:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:cursoradapter:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-core-utils:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-core-utils:28.0.0 -> com.android.support:documentfile:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:loader:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:loader:28.0.0 -> android.arch.lifecycle:livedata:1.1.1
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:loader:28.0.0 -> android.arch.lifecycle:livedata:1.1.1 -> android.arch.core:runtime:1.1.1
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:loader:28.0.0 -> android.arch.lifecycle:livedata:1.1.1 -> android.arch.lifecycle:livedata-core:1.1.1
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> android.arch.lifecycle:viewmodel:1.1.1
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-core-utils:28.0.0 -> com.android.support:localbroadcastmanager:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-core-utils:28.0.0 -> com.android.support:print:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:support-core-ui:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:customview:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:viewpager:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:coordinatorlayout:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:drawerlayout:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:slidingpanelayout:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:interpolator:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:swiperefreshlayout:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-fragment:28.0.0 -> com.android.support:support-core-ui:28.0.0 -> com.android.support:asynclayoutinflater:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:support-vector-drawable:28.0.0
:app:debugRuntimeClasspath -> com.classic.common:multiple-status-view:1.7 -> com.android.support:appcompat-v7:28.0.0 -> com.android.support:animated-vector-drawable:28.0.0
:app:checkDebugDuplicateClasses
java.lang.RuntimeException: Manifest merger failed with multiple errors, see logs
org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
java.lang.RuntimeException: Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.2.0-runtime (androidx.core:core:1.2.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)
Manifest merger failed with multiple errors, see logs
解决,在gradle.properties文件里下面添加:android.enableJetifier=true
以上是关于:app:checkDebugAarMetadata Your project has set `android.useAndroidX=true`, but configuration `:app:的主要内容,如果未能解决你的问题,请参考以下文章