问题
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.
回答1:
In addition to previous answers. I see a lot of classes from apache lib: HttpPost, BasicNameValuePair and others. That was removed in M.
回答2:
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.
回答3:
change your buildToolsVersion 22.0.1
again your compile version is lower than targeted version
回答4:
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.... :)
来源:https://stackoverflow.com/questions/32432785/i-have-updated-android-api-to-23-and-there-is-no-error-in-any-xml-file-but-when