Answers for "Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > More than one file was found with OS independent path 'META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version'"

3

More than one file was found with OS independent path 'META-INF/metadata.jvm.kotlin_module'

android {      
      packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/ASL2.0'
        exclude("META-INF/*.kotlin_module") 
      }          
}
Posted by: Guest on September-03-2020
0

More than one file was found with OS independent path 'META-INF/AL2.0'. when running android test

For android tests:
Downgrade coroutine version to 1.3.5 or use this code in app level gradle file
android {
    packagingOptions {
        exclude "**/attach_hotspot_windows.dll"
        exclude "META-INF/licenses/**"
        exclude "META-INF/AL2.0"
        exclude "META-INF/LGPL2.1"
    }
        }
Posted by: Guest on December-21-2020

Code answers related to "Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > More than one file was found with OS independent path 'META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version'"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language