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

记录一下

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':dkplayer-sample:transformResourcesWithMergeJavaResForDebug'.
> More than one file was found with OS independent path 'META-INF/proguard/androidx-annotations.pro'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 28s

解决方法

  packagingOptions {
        exclude 'META-INF/proguard/androidx-annotations.pro'
    }

app下的build.gradle android目录下即可

你可能感兴趣的:(记录问题)