Android ClassNotFoundException: Didn't find class on path
I had the same issue for my project. It happened due to the conflict in android support library version between my project and the library project that I added in my project. Put the same version android support library in your project and library projects you included and clean build... Everything will work...
This following method worked for me
- Right click on your
project
and selectproperties
- The "Properties for " panel will open. From the menu on the left go to
Java Build Path
->Order and Export
- From the list below uncheck the box next to
"Android Dependencies"
- Finally
clean your project
and run
For those of you who are having this issue on Android Studio, I had the same problem after a merge and for some reason it even persisted after clean
and invalidate cash/restart
operations which was driving me crazy.
Turns out, it can be fixed by running gradle build once from command line. Simply run the following n the project directory:
./gradlew assemble clean./gradlew assemble
I hope it'd save someone the time waste and frustration I had to go through.