skip to Main Content

I’m getting this error after trying to run my project after I had created another one before to attempt something:

01/24 19:14:48: Launching 'app' on Pixel 2 API 30.
Install successfully finished in 412 ms.
$ adb shell am start -n "com.example.wolfix/com.app.wolfix.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while executing: am start -n "com.example.wolfix/com.app.wolfix.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.wolfix/com.app.wolfix.MainActivity }
Error type 3
Error: Activity class {com.example.wolfix/com.app.wolfix.MainActivity} does not exist.

Error while Launching activity

Why does it say "Error: Activity class {com.example.wolfix/com.app.wolfix.MainActivity} does not exist." if I have a MainActivity class?

This is really weird because it didn’t happen before but started happening now…

I have no idea, can someone help me with this?

2

Answers


  1. If Package Name Is Different Then This Type Of Error Occurs

    Check Package Name In All The Activity & build.gradle & Manifest.

    Login or Signup to reply.
  2. So I got this exact error after upgrading Android Studio and Gradle. Deleting (or at the very least renaming) the .idea folder fixed the issue and cleaned up a lot of files that seemed to be detritus left over from older versions.

    My suspicion is there’s an upgrade issue from some versions of android studio to the new one

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search