Java.lang.ClassNotFoundException after Android studio update

后端 未结 7 2002
半阙折子戏
半阙折子戏 2020-12-03 22:48

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

相关标签:
7条回答
  • 2020-12-03 23:29

    I experienced this error and had looked at a number of SO threads, and various resources and also checked in to the android dev irc. The answers seem to follow a trend:

    Gradle/Android Studio General:

    Clean build, reset Android Studio caches, uninstall/reinstall android studio, leave Android Studio and come back to it in 2 hours, restart your computer.

    Referencing the class

    Is it correctly listed through the manifest? What about gradle configuration?

    Loading Classes via IDE (though that seems mostly eclipse related)

    Libraries do not get added to APK anymore after upgrade to ADT 22

    Android Activity ClassNotFoundException - tried everything

    https://www.youtube.com/watch?v=3vqcGhEPHdo

    My solution: naming conflict?

    I found through pure desperation that by changing my class name Manifest to MyCoolManifest or something like that, I no longer had the issue. Since your class name is Login, perhaps renaming the class will solve your problem.

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