Android: Unable to build APK. More than one file was found with OS independent path 'META-INF/android.arch.lifecycle_runtime.version'

前端 未结 2 1243
Happy的楠姐
Happy的楠姐 2021-01-13 04:51

All of a sudden, I am getting this error while building APK

Error:Execution failed for task \':app:transformResourcesWithMergeJavaResForDevDebug\'.
> Mor         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-13 05:29

    You can try using pickFirst something like this:

    packagingOptions {
       // this is the lazy option.
       //pickFirst  'META-INF/*'
       pickFirst   'META-INF/android.arch.lifecycle_runtime.version'
    }
    

提交回复
热议问题