More than one file was found with OS independent path 'META-INF/androidx.vectordrawable_vectordrawab

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> More than one file was found with OS independent path 'META-INF/androidx.vectordrawable_vectordrawable.version'
项目从8.0兼容9.0配置以后报错,如下:

More than one file was found with OS independent path 'META-INF/androidx.vectordrawable_vectordrawab_第1张图片

解决方法如下:

implementation 'androidx.appcompat:appcompat:1.1.0-beta01'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

添加这两个AndroidX库,然后因为以前也有

appcompat库,所以只能选择一个,
implementation 'com.android.support:appcompat-v7:28.+'就是这个,今天这个小错,把我卡了一上午。。。

你可能感兴趣的:(Android)