![](/img/trans.png)
[英]How come my eclipse editor shows no error but when I try to run the file, it shows “cannot be resolved to a type” error?
[英]I have updated Android API to 23 and there is no error in any xml file but when I try to build project this shows R cannot be resolved
我已經更新了最新的Android API即23及其構建工具,當我想嘗試使用此API並構建我的android項目時,它顯示R符號無法解析。
所以,請幫助我這個,我也想使用org.apache.http的HTTPResponse類,所以我必須使用哪個jar,請告訴我這個。
我已經嘗試了所有的技巧,如構建和清理項目並關閉項目並重新打開,我也驗證了xml文件中也沒有錯誤。
這是類似的問題。 你的問題不在R中無法解決。 問題出在org.apache.http
包中,該包已在SDK 23中刪除。
改變你的buildToolsVersion 22.0.1
再次,您的編譯版本低於目標版本
通常當發生此錯誤時,一般解決方案是Clean your project
,如果仍然出現錯誤close the Eclipse once and reopen it
。
這樣我的同樣問題就解決了.... :)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.