Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
231 views
in Technique[技术] by (71.8m points)

android - Could not find class

My project ran well until I clicked "Help->Check for updates" and installed some components in Android SDK Manager.

In general, there is no error announced in my project. But when I run my project, it causes an error

could not find class com.androiquery.AQuery

I checked out again, I still can see the AQuery library in libs folder and also the reference to this library.

I also tried to clean the project and its dependencies, quite the eclipse, restart the computer, but it doesn't solve. Do you know how to fix it?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I have had the same issue as you and have fixed it this way.

Go to Properties > Java Build Path > Order and Export and check the Android Private Libraries box.

See the screenshot below:

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...