Could not find class XXX referenced from method XXX.

前端 未结 3 877
失恋的感觉
失恋的感觉 2020-12-06 09:09

I\'m working on a libGDX project and I have a class called CheerVArachnids that has another inline class which is an event listener. When I run this project on the desktop i

相关标签:
3条回答
  • 2020-12-06 09:45

    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

    0 讨论(0)
  • 2020-12-06 09:46

    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.

    0 讨论(0)
  • 2020-12-06 10:00

    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.

    0 讨论(0)
提交回复
热议问题