Android Studio 4.0.1 Weird Bug: Launcher Activity Does Not Exist Error (July 2020)

Android Studio 4.0.1 July 2020

Android Studio 4.0.1 just came out July 2020 and it has some instability issues. One of which is unable to launch your launcher activity for your project if you uninstalled it on the device.

The error from Android Studio is as below:

Error while executing: am start -n “LauncherActivity” -a android.intent.action.MAIN -c android.intent.category.LAUNCHER

Starting: intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=”LauncherActivity”}

Error type 3

Error: Activity class {LauncherActivity} does not exist.

Error while Launching activity

One workaround is to uninstall the app COMPLETELY from the device running below command line on terminal:

adb uninstall <the.package.name>

(Replace the entire <the.package.name> with the actual package name)

Then it should be good to go ;)

That’s it.

Happy coding.

Let me know if you find better solution or approach in the comment section below. ;)

Find me at Twitter @rick3817

--

--

Hi this is Rick from Hong Kong. I am a native iOS and Android mobile developer and also a tech enthusiast. Find me on Twitter https://twitter.com/rick3817

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rick_HK

Hi this is Rick from Hong Kong. I am a native iOS and Android mobile developer and also a tech enthusiast. Find me on Twitter https://twitter.com/rick3817