java.lang.RuntimeException: Unable to instantiate activity ComponentInfo / java.lang.ClassNotFoundException

后端 未结 5 917
别那么骄傲
别那么骄傲 2020-12-06 19:07

I\'m having this error while running on my device. I\'ve been browsing the issue and I\'m pretty sure I\'m not having the same issues as mentioned. Both of my activities are

5条回答
  •  隐瞒了意图╮
    2020-12-06 19:32

    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).

提交回复
热议问题