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目录下即可

发布了45 篇原创文章 · 获赞 38 · 访问量 2万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章