Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ClassNotFoundException is thrown by all Android projects that used some sort of library after ADT plugin Update [closed]

I am using Eclipse. I am facing this issue Right after GOOGLE IO 2013 when i updated my ADT plugin, Android SDK tools to Revision 22 and Android SDK platform-tools to revision 17

All of my projects that previously worked have started throwing ClassNotFoundException after this update for no reason. I have searched stackoverflow but none of the answers seem to solve my problem.

like image 373
Sheraz Ahmad Khilji Avatar asked Dec 11 '22 15:12

Sheraz Ahmad Khilji


2 Answers

i have Solved this issue and i thought of sharing it with everyone.

I have noticed that there is a new Android Package named as Android Private Libraries and after hours of trying i found a way to fix this.

Right Click on your Project then

Goto Build Path-> Configure Build Path -> Order and Export

when you are there you should check the Android Private Libraries and then click OK button.

if you still face the problem delete all the files inside your bin folder and rebuilt you project.

Hope this helps others who are facing the same problem as me

like image 187
Sheraz Ahmad Khilji Avatar answered Dec 14 '22 03:12

Sheraz Ahmad Khilji


Faced the same problem when i updated the adt try this

In Eclipse go to:

"Project" -> "Properties" -> "Java Build Properties"

On the "Order and Export" tab I checked "Android Private Libraries" on my project. I also did this for the library project it references. This fixed my class not found errors following upgrading to SDK 22.

like image 40
Ravi Avatar answered Dec 14 '22 03:12

Ravi