android.enableJetifier 解决包duplicate

现在项目基本上都是androidx了,但是有时候也需要用老的库,这样就会存在问题。

Caused by: java.lang.RuntimeException: Manifest merger failed with multiple errors, see logs

Caused by: org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable

 

Caused by: java.lang.RuntimeException: Duplicate class android.support.v4.app.AppLaunchChecker found in modules support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0) and support-core-utils-26.1.0-runtime (com.android.support:support-core-utils:26.1.0)

 

 

本来想用排除法解决,谁知道提示找不到类。

 

posted @ 2022-07-07 16:20  jiduoduo  阅读(1255)  评论(0编辑  收藏  举报