返回顶部
首页 > 资讯 > 移动开发 >2 files found with path ‘lib/arm64-v8a/xxx.so‘ 问题解决
  • 184
分享到

2 files found with path ‘lib/arm64-v8a/xxx.so‘ 问题解决

androidgradleandroidstudio 2023-09-07 22:09:01 184人浏览 薄情痞子
摘要

目录 2 files found with path ‘lib/arm64-v8a/xxx.so‘ 问题 2 files found with path 'META-INF/DEPENDENCIES' from inputs:报错 2

目录

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 FAILEDExecution 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文件 ,

android {     packagingOptions    {        exclude'META-INF/DEPENDENCIES'    }}


参考:https://www.jianshu.com/p/41618b6cfcb4
 

来源地址:https://blog.csdn.net/jacke121/article/details/128585624

--结束END--

本文标题: 2 files found with path ‘lib/arm64-v8a/xxx.so‘ 问题解决

本文链接: https://lsjlt.com/news/399147.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作