Activity class does not exist

后端 未结 18 1953
深忆病人
深忆病人 2020-12-15 16:39

Aaaargh! I don\'t know what\'s going on, but suddenly I can\'t launch my app. I\'m using IntelliJ and I keep getting this error. I thought maybe there was a typo somewhere i

18条回答
  •  失恋的感觉
    2020-12-15 17:16

    I have tried every suggestion i found, but couldnt solve the issue. After that i figured it out myself: The problem in my case was that i renamed the package. To make sure you dont get the error above, add the

      defaultConfig {
    
        applicationId "com.yourpackage.yourapplication"
      }
    

    to your build.gradle file. Hope that helps.

提交回复
热议问题