I updated to Android Studio 2.1 from the stable channel. As soon as I did that I am getting ClassNotFoundException to my login class, which is declared in the manifest for l
Here you go : Clean the project , And uninstall the existing app and run Again .
You have to provide:
compileSdkVersion '22' buildToolsVersion "22.0.1"
as your targetSdkVersion 22
Try cleaning gradle cache & build by running each line in the terminal:
gradlew --stop
gradlew cleanBuildCache
gradlew clean
Try this:
Clear app cache
Clear app data
Uninstall
app
Run/Debug
again
Hope it works!
We are experiencing a similar error after updating to version 2.1 of Android Studio. A class added long ago is now not being found on application start. It's only happening with Android 5.1 and 5.1.1. Really weird crash!
The solution to this was enabling "Instant Run" solves the issue on Lollipop.
For me nothing of the above worked. Until I disabled "Instant Run" to Hot Swap code.
Android studio version: 2.3.3 Latest (at the date of the answer)
Android Test Devices: 5.1.1, 6.0.1
To disable instant run. In Android studio, Got to Preferences -> write "Instant Run" in the search bar -> Uncheck "Enable Instant Run to hot swap code ..."