Duplicate files copied in APK META-INF/library_release.kotlin_module

后端 未结 3 1953
耶瑟儿~
耶瑟儿~ 2021-02-20 17:13

I recently added two Android libraries through JitPack and I have the following error:

Duplicate files copied in APK META-INF/library_release.kotlin_module
         


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-20 17:56

    After looking at other conflicts, it seems like the resolution is

    packagingOptions {
        pickFirst 'META-INF/library_release.kotlin_module'
    }
    

    under android in the app gradle.

    This allows the apk to build

提交回复
热议问题