目录

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

2 files found with path ‘META-INF/DEPENDENCIES’ from inputs:报错


2 files found with pathlib/arm64-v8a/xxx.so问题

解决方法

在报该编译错误modulebuild.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.

解决办法
在报该编译错误modulebuild.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进行投诉反馈,一经查实,立即删除

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注