Android(安卓)Studio报错:the minSdk version should not be declared in the android manifest file 解决办法
16lz
2022-06-14
Android Studio报错:the minSdk version should not be declared in the android manifest file 解决办法
全部报错:
ERROR: The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.
Remove minSdkVersion and sync project
Affected Modules: app
翻译如下:
minSdk版本不应该在android清单文件中声明。您可以将版本从清单移动到build.gradle文件中的默认Config。
于是用 Everything 在工程目录下查找Mainfast.xml文件
工程里面有5个文件,打开一看
果然里面有minSdkVersion 和 targetSdkVersion 的定义(网上有说targetSdkVersion也要一并删除的,于是一起删了),直接删除
对5个文件做相同处理
搞定!
更多相关文章
- Android和IOS录制mp3语音文件的方法
- android点击按钮发出声音
- android ADB PUSH 安装apk的具体步骤 及 与 ADB INSTALL 的区别
- android读取SDCard任意路径下的文件
- Android文件权限(Linux的权限)
- android 打开word pdf excle 进行预览 (工具类总结一)
- android如何获取SD卡上的多媒体文件
- Android的一些积累(不断更新)
- NPM 和webpack 的基础使用