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:Usersadmin.gradlewrapperdistsgradle-6.8-bincachestransforms-3c9524869f844e5aa0e4c08903f15e41ftransformedjetified-httpclient-4.5.6.jar
- C:Usersadmin.gradlewrapperdistsgradle-6.8-bincachestransforms-3d37663de769a65fb667ce308a29d0c3ctransformedjetified-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文件 ,
android {
packagingOptions
{
exclude'META-INF/DEPENDENCIES'
}
}
参考:https://www.jianshu.com/p/41618b6cfcb4
原文地址:https://blog.csdn.net/jacke121/article/details/128585624
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_20308.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。