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
Your MainActivity.java is excluded from compile, so this class isn't included in .apk. Remove line:
MainActivity.java
from the excludeFromCompile section of the .idea/compiler.xml file (or you can do this from IDE settings).
excludeFromCompile
.idea/compiler.xml