目录
2 files found with path ‘lib/arm64-v8a/xxx.so‘ 问题
2 files found with path 'META-INF/DEPENDENCIES' from inputs:报错
2 files found with path ‘lib/arm64-v8a/xxx.so‘ 问题
解决方法:
在报该编译错误的module的build.gradle中加入如下配置项,排除掉中间生成的lib/arm64-v8a/xxx.so
android {
packagingOptions
{
exclude'lib/arm64-v8a/xxx.so'
}
}
2 files found with path 'META-INF/DEPENDENCIES' from inputs:报错
> Task :app:mergeDebugJavaResource FAILED
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/DEPENDENCIES' from inputs:
- C:\Users\admin\.gradle\wrapper\dists\gradle-6.8-bin\caches\transforms-3\c9524869f844e5aa0e4c08903f15e41f\transformed\jetified-httpclient-4.5.6.jar
- C:\Users\admin\.gradle\wrapper\dists\gradle-6.8-bin\caches\transforms-3\d37663de769a65fb667ce308a29d0c3c\transformed\jetified-httpcore-4.4.10.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 --info or --debug option to get more log output. Run with --scan to get full insights.
解决办法
在报该编译错误的module的build.gradle中加入如下配置项,排除掉中间生成的META-INF/DEPENDENCIES文件 ,文章来源:https://www.toymoban.com/news/detail-512747.html
android {
packagingOptions
{
exclude'META-INF/DEPENDENCIES'
}
}
参考:https://www.jianshu.com/p/41618b6cfcb4
文章来源地址https://www.toymoban.com/news/detail-512747.html
到了这里,关于2 files found with path ‘lib/arm64-v8a/xxx.so‘ 问题解决的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!