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个文件,打开一看

果然里面有minSdkVersiontargetSdkVersion 的定义(网上有说targetSdkVersion也要一并删除的,于是一起删了),直接删除

对5个文件做相同处理

搞定!

更多相关文章

  1. Android和IOS录制mp3语音文件的方法
  2. android点击按钮发出声音
  3. android ADB PUSH 安装apk的具体步骤 及 与 ADB INSTALL 的区别
  4. android读取SDCard任意路径下的文件
  5. Android文件权限(Linux的权限)
  6. android 打开word pdf excle 进行预览 (工具类总结一)
  7. android如何获取SD卡上的多媒体文件
  8. Android的一些积累(不断更新)
  9. NPM 和webpack 的基础使用

随机推荐

  1. Android截屏并保存图片到本地
  2. Android(安卓)- RadioButton 图片位置和
  3. android 加载图片防止内存溢出
  4. Android(安卓)P WiFi Disable 流程
  5. android 上传数据到web
  6. android app通知栏权限状态判断及跳转状
  7. Android版本检测\自动更新
  8. Android(安卓)获取世界时区
  9. android编程小技巧
  10. android 基础