Android Studio 打包报错

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':rich:mergeReleaseJavaResource'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
More than one file was found with OS independent path 'AndroidManifest.xml'

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 7s

image.png

解决方法:
https://stackoverflow.com/questions/58231884/more-than-one-file-was-found-with-os-independent-path-androidmanifest-xml

classpath 'com.android.tools.build:gradle:3.5.2'降低到
classpath 'com.android.tools.build:gradle:3.4.0'

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容