Could not find class XXX referenced from method XXX.<YYY>

回眸只為那壹抹淺笑 提交于 2019-11-27 23:26:19

Since some ADT-Version you have to set which libraries / projects should be exported too.

Project-Propiertes -> Java Build Path -> Order and Export -> Check your Sources and other Libraries you are using.

Do these Export-Settings for your Core- and Android-Project.

Then it should work fine on Android.

syp_dino

In my case, everything worked fine until I installed the new updates for the SDK and Eclipse.

I got an error: "Could not find class..."

I found solution in another stackoverflow site.

I have a similar problem when using external jar (in my case openCSV). The reason I had a problem was due to a change in ADT 17 (or above). What I needed to do to resolve the problem was In Eclipse go to Properties -> Java build path -> Order and export. Mark my jar. Move jar to top of the list. The solution was found in the following page which reference to a very good article.

First you should: import XXX(Class).java, If you added external library jar file import them to the LIB folder. After that: Right Click to your Project -> Properties -> Java Build Path -> Order and Export(tab) -> select All -> press OK -> Clean your Project.

Hope this solve this issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!