`More than one file was found with OS independent ...
# gradle
j
More than one file was found with OS independent path 'META-INF/AL2.0'.
Added exclude to the packagingOptions in android{} but still getting err. This is occurring only for instrumented tests. Any ideas?
g
I had to do this:
Copy code
// Added to avoid this error -
    // Execution failed for task ':app:mergeDebugAndroidTestJavaResource'.
    // > A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
    // > 2 files found with path 'META-INF/AL2.0' from inputs:
    packagingOptions {
        resources.excludes.add("META-INF/AL2.0")
        resources.excludes.add("META-INF/LGPL2.1")
    }
in my app gradle file
394 Views