I have updated Android API to 23 and there is no e

2019-06-01 10:29发布

I had update latest Android API i.e. 23 and its build tools also and when I want to try with this API and build my android project it shows R symbol cannot be resolved.

So, please help me regarding this and I also want to use org.apache.http for HTTPResponse class so which jar I have to use , please tell me regarding this also.

I have tried all the tricks like build and clean the project and close the project and reopen again and I verified also that there is no error in xml file also.

4条回答
贼婆χ
2楼-- · 2019-06-01 11:04

Here is similar question. Your problem is not in R cannot be resolved. Problem is in the org.apache.http package which was removed in SDK 23.

查看更多
倾城 Initia
3楼-- · 2019-06-01 11:20

In addition to previous answers. I see a lot of classes from apache lib: HttpPost, BasicNameValuePair and others. That was removed in M.

查看更多
闹够了就滚
4楼-- · 2019-06-01 11:24

Usually when this error occurs the general solution is Clean your project and if still an error reapeats close the Eclipse once and reopen it.

That way my same problem got sloved.... :)

查看更多
欢心
5楼-- · 2019-06-01 11:25

change your buildToolsVersion 22.0.1

again your compile version is lower than targeted version

查看更多
登录 后发表回答