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萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章