Activity class does not exist

后端 未结 18 1805
深忆病人
深忆病人 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:05

    Also double check the package and activity name. I got a similar error caused by a missing dot in front of the activity name (e.g. "package.Activity" instead of ".package.Activity" ). IntelliJ didn't mark it as wrong so it was easily overlooked.

    0 讨论(0)
  • 2020-12-15 17:05

    I tried many but the problem is confliction of the package. I just invalidated caches and restarted my Android studio and working well. Hope this may help you!

    0 讨论(0)
  • 2020-12-15 17:12

    Check if you don't have another application with the same package id installed on device: https://stackoverflow.com/a/22524188/540639

    0 讨论(0)
  • 2020-12-15 17:13

    I had a very similar error. In my case the application was not completely removed from the Android phone. I simply removed it using ADB, e.g. adb unsinstall com.your_app_name

    0 讨论(0)
  • 2020-12-15 17:13

    Rebuild the application and run it.

    This solved my problem.

    0 讨论(0)
  • 2020-12-15 17:13

    I'd had the same problem, after closed Genymotion emulator and connected my phone. Cleaning the project and rerunning solved my problem too.

    0 讨论(0)
提交回复
热议问题