3 files found with path ‘META-INF/DEPENDENCIES’.
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
Probably means: Error: Multiple files found in OS independent path ‘META-INF/DEPENDENCIES’
Solution:
Add to the build.gradle where the problem occurs
packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' }
The general principle is:
In Android gradle construction, it is not allowed to include the same file with the same path in the output multiple times. In your construction, there are two meta-inf/dependencies
files from different places. Since your application does not need this file at all, the easiest way is to tell the construction system to ignore it completely, which is the role of the exclude
instruction
Another PickFirst
instruction tells the build system to keep one copy; There are some details in Android gradle plug-in 0.7.0: “duplicate files during APK packaging”
Read More:
- [Solved] FreeBSD PKG error: pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2
- Entry name ‘META-INF/xxx‘ collided [How to Solve]
- [Solved] Failed update hbase:meta table descriptor HBase Startup Error
- [Solved] Vite Bulk Import import.meta.glob Error: ERR_ABORTED 403 (Forbidden)
- [Solved] Android Studio Start Error: Missing essential plugin: org.jetbrains.android Please reinstall Android
- [Solved] Android app development version update failed, Android – error: task execution failed ‘: app: com
- [Solved] Flink Hadoop is not in the classpath/dependencies
- The SDK of Android webrtc compiled with Ninja – C out / release command reported an error, and the Android NDK processing method could not be found
- AAR Call Error: only jar-type local dependencies are supported
- [Solved] Could not resolve all dependencies for configuration ‘:app:debugRuntimeClass
- Mvn dependency:copy-dependencies -DoutputDirectory=lib package Error
- Android Error: Android resource linking failed [How to Solve]
- ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’
- Android studio Error:Execution failed for task ‘: app:transformResourcesWithMergeJavaResForDebug ‘
- [Solved] Android9.0 App Install Android4.4 Error: InflateException-You must supply a layout_height attribute.
- [Solved] Android Error: import android.support.annotation.NonNull
- [Solved] Android 9.0 APP Install Android 4.4 Error: IllegalArgumentException
- [Solved] Angular Start Project Error: The target entry-point “ngx-echarts“ has missing dependencies: – @juggle/resi
- Android uses the Android iconics font library error [How to Solve]