Android Studio: ClassNotFoundException

后端 未结 17 988
时光说笑
时光说笑 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条回答
  •  -上瘾入骨i
    2021-01-11 13:53

    Your MainActivity.java is excluded from compile, so this class isn't included in .apk. Remove line:

    
    

    from the excludeFromCompile section of the .idea/compiler.xml file (or you can do this from IDE settings).

    Source

提交回复
热议问题