目录
一、问题一:"the minSdk version should not be declared in the android manifest file"
一、问题一:"the minSdk version should not be declared in the android manifest file"
1、全部报错:![](https://img-blog.csdnimg.cn/408d5eee015a496fb9d5e3a8e026581d.png)
2、报错原因:
minSdk版本不应该在android清单文件中声明。
3、解决过程:
点击上图中蓝色字体“Remove minSdkVersion and sync project"
再点击下图红圈内容
红圈内里面有minSdkVersion的定义,将其删除(如果有targetSdkVersion的定义,也要一并删除)删除后如下图:
二、问题二:“程序包org.apache.http不存在”
1、报错如下:
2、解决方法:
在项目build.gradle中,defaultConfig上边,加入代码:useLibrary 'org.apache.http.legacy'这样问题就解决了!