:app:processDebugMainManifest Manifest merger failed with multiple errors, see logs
android studio的报错提示:
......
:app:processDebugMainManifest
Manifest merger failed with multiple errors, see logs
:app:processDebugMainManifest对应:
> Task :app:processDebugMainManifest FAILED
D:\Android2\CityList1\app\src\main\AndroidManifest.xml:20:5-81 Warning:
Element uses-permission#android.permission.WRITE_EXTERNAL_STORAGE at AndroidManifest.xml:20:5-81 duplicated with element declared at AndroidManifest.xml:11:5-81
D:\Android2\CityList1\app\src\main\AndroidManifest.xml:8:5-10:41 Error:
uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library [com.android.support:appcompat-v7:25.0.1] C:\Users\Administrator\.gradle\wrapper\dists\gradle-6.7.1-all\caches\transforms-2\files-2.1\c7595eb13b704f08e6092b7e9dcde643\appcompat-v7-25.0.1\AndroidManifest.xml as the library might be using APIs not available in 8
Suggestion: use a compatible library with a minSdk of at most 8,
or increase this project's minSdk version to at least 9,
or use tools:overrideLibrary="android.support.v7.appcompat" to force usage (may lead to runtime failures)
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed with multiple errors, see logs
* 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.
错误到底在哪,可以发现:
:app:processDebugMainManifest对应的中一句:
D:\Android2\CityList1\app\src\main\AndroidManifest.xml:8:5-10:41 Error:
uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library
这报错信息中AndroidManifest.xml,只记得要在AndroidManifest点击“Merged Manifest”
Merged Manifest中发现一个小问题,报错信息如下图:
问题我容易找到了,按照这种方法就可以很轻松的找到冲突的错误所在
Error: uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library怎么解决:
1.直接删除(不一定)如下图:
看一下:
uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library [com.android.support:appcompat-v7:25.0.1] C:\Users\Administrator.gradle\wrapper\dists\gradle-6.7.1-all\caches\transforms-2\files-2.1\c7595eb13b704f08e6092b7e9dcde643\appcompat-v7-25.0.1\AndroidManifest.xml as the library might be using APIs not available in 8
可能app的build.gradle中的minSdkVersion有问题:
minSdkVersion 8
minSdkVersion 8的8好像不存在
解决:
改minSdkVersion多少(多少必须有存在)
相关文章
- 苹果APP上架App Store被拒常见问题及解决思路分享
- R shiny出错Check your logs or contact the app
- 苹果商店上架流程_App上架苹果流程及注意事项
- uni-app 安卓APP开发记录
- java基于springboot外卖系统在线订餐系统app源码厨艺论坛APP
- APP移动端测试
- 干货 | 医疗健康类APP违法违规个人信息收集的自动化检测技术研究
- 【错误记录】Android Studio 向 GitHub 提交代码报错 ( Push failed: Failed with error: Could not read from remote )
- 在线的ios App Store文件上传流程
- 使用jqMobi开发app基础:页面传值方式详解手机开发
- 使用jqMobi开发app基础:a标签的使用详解手机开发
- Linux下的打造智能App之旅(linux系统app)
- 格力集团严正声明:从未发布任何APP
- 高效缓存利器:App Redis快速提升应用程序性能(appredis)
- App远程连接MySQL的实现方式(app远程连接mysql)
- App注册MySQL一分钟构建安全的数据库(app 注册 mysql)
- APP如何连接MySQL数据库(app怎样链接mysql)
- 极速开发APP与MySQL的无缝连接(app 如何连mysql)
- 数据库利用App制作读取MySQL数据库的简单方法(app制作读取mysql)
- app开发之路mysql 驱动前进(app与mysql开发)
- 构建App端Mysql数据库,打造智能体验(app mysql数据库)
- Oracle App驱动的路径探索之旅(oracle app目录)