Android Studio: ClassNotFoundException

后端 未结 17 907
时光说笑
时光说笑 2021-01-11 13:23

i was busy with my app for over a week, when suddenly:

11-12 07:59:17.860    1653-1653/nl.test.myapp E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.Runtim         


        
17条回答
  •  一向
    一向 (楼主)
    2021-01-11 13:58

    Close android studio. Navigate to the project folder. Delete all files relating to intelliJ (Android Studio) i.e

    • .idea (folder)
    • *.imi (files)

    Also make sure that package name matches the package in the android manifest.xml.

    Then reimport the project.

    This happened to me because I renamed the root package and IntelliJ (android studio) didn't track this.

提交回复
热议问题