Execution failed for task ‘:app:mergeDebugJavaResource’.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
> 2 files found with path 'META-INF/library_release.kotlin_module' from inputs:
- C:\Users\pc5\.gradle\caches\transforms-2\files-2.1\ce2b46fc1c5f5af8ed7abfa332710f84\zoomlayout-1.9.0\jars\classes.jar
- C:\Users\pc5\.gradle\caches\transforms-2\files-2.1\a562c978ea1815ba0e02c6c6a3c46b97\egloo-0.6.1\jars\classes.jar
Adding a packagingOptions block may help, please refer to
https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html
for more information
* 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.
When Importing the zoomlayou third-party library, the installation reports an error, Clean Project, clearing the cache and restarting are also invalid
Solution:
Add the following code to the module’s build.gradle under the android tab
android {
packagingOptions {
pickFirst "META-INF/library_release.kotlin_module"
}
}
or
android {
packagingOptions {
exclude "META-INF/library_release.kotlin_module"
}
}
Read More:
- [Solved] Execution failed for task ‘:app:checkDebugAarMetadata‘
- Android Error: META-INF/DEPENDENCIES [How to Solve]
- Flutter Package error: keyboard_visibility:verifyReleaseResources
- [Solved] Execution failed for task ‘:app:processDebugResources‘. > A failure occurred while executing com.and
- Execution failed for task ‘:app:kaptDebugKotlin‘ [How to Solve]
- AAPT: error: attribute cardBackgroundColor (aka com.x.x:cardBackgroundColor) not found.
- [Solved] Flutter – AAPT: error: resource android:attr/dialogCornerRadius not found.
- Flutter android studio runs gradle build error: Could not resolve all artifacts for configuration’:classpath’.
- [Solved] Android app development version update failed, Android – error: task execution failed ‘: app: com
- Android studio Error:Execution failed for task ‘: app:transformResourcesWithMergeJavaResForDebug ‘
- [Solved] Compile Error: AAPT: error: resource android:attr/lStar not found
- Failed to transform file ‘xxx‘ to match attributes [How to Solve]
- [Solved] Android Studio Error: The binary version of its metadata is 1.5.1, expected version is 1.1.15.
- How to Solve Project Upgrade to flutter2.5.0 Error
- error: resource android:attr/lStar not found [How to Solve]
- [Solved] Failed to apply plugin appears when Android studio imports a project
- [Solved] Manifest merger failed with multiple errors, see logs
- Android studio New kotlin project Error: org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21-release-315
- jitpack.io ERROR: No build artifacts found [How to Solve]
- Kotlin gets the ID automatically error [How to Solve]