Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Activity class does not exist (Error type 3)

I have a device nexus5x with android O and i develop an app in my laptop and also in another computer. But when i want to start the app in another computer after i have started it in my laptop i always get error described below.

Error while executing: am start -n "com.safetylink.android.safetylinkheartbeatapp/com.application.aware.safetylink.auth.SplashScreenActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.safetylink.android.safetylinkheartbeatapp/com.application.aware.safetylink.auth.SplashScreenActivity }
Error type 3
Error: Activity class {com.safetylink.android.safetylinkheartbeatapp/com.application.aware.safetylink.auth.SplashScreenActivity} does not exist.

Error while Launching activity

It's a magic for me, because i don't have the same problem with another phones (it's just being reinstalled) and with emulator. Application works fine on them.

I think it's related to nexus5x settings, but i don't know exactly. What should i do, to fix this problem?

P.S.: I have already tryed to clean, rebuild project, rename activity, invalidate cache and restart for several times, also disable instance run, but it doesn't work for me.

like image 564
Michael Abyzov Avatar asked Oct 23 '17 11:10

Michael Abyzov


People also ask

How to fix error type 3 in Android?

Error type 3 Error: Activity class {com.example.xxxxxx/com.example.xxxx.MainActivity} does not exist 1. Check whether the package in AndroidManifest.xml and the applicationId in build.grade are consistent (where most of the problems are), modify them and try again after the inconsistency

How to uninstall activity class {homeactivity} does not exist in Gradle?

But here is the proper way to uninstall: Use the ./gradlew uninstallAll command. This will prevent the Error: Activity class {HomeActivity} does not exist. error. If you’re lazy you can use the abbreviation for this task: ./gradlew uA.

Why is my launcher activity not working?

Error: Activity class {LauncherActivity} does not exist. Due to this error, you must be unable to launch your launcher activity for your project if you uninstalled it on the device. So in this article, we are going to discuss that why does this error occurs and six methods that will help you to solve this error.


3 Answers

In my case, the installation of the "Deploy: Default APK" option in Android Studio was helpful

like image 77
Trubnikov Avatar answered Nov 08 '22 08:11

Trubnikov


On some devices (LG Stylus 3 Android 7.0) when you press and move app from desktop to trash can the app does not removed from device. You can restore app trashed by this way later without reinstalling it from Google Play. If it is your case you may see this error:

Error while executing: am start -n "ru.alanov.cashbox/ru.alanov.cashbox.activity.LoginActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.your.app/.activity.MainActivity }
Error type 3
Error: Activity class {ru.alanov.cashbox/com.your.app.activity.MainActivity} does not exist.

Error while Launching activity

when trying to reinstall app from Android Studio thru ADB. Go to Settings -> Applications -> Click on your app and delete it. After it error disappears.

like image 40
isabsent Avatar answered Nov 08 '22 09:11

isabsent


If you are getting this error, it may be because the app that you are trying to load is still installed for another user account on the same device.

In other words, uninstalling an app for the current user account does not necessarily uninstall the same app for all other user accounts on the device.

If you go into Settings => App and look for the device in question, you will see that it may still be there. If that is the case, Tap on the app to show the App Info screen and goto the "..." overflow menu on the upper right hand side. Tap that and there should be an option to uninstall the app for all users.

Once you have uninstalled the app for all users, this error should go away and you should be able to load and run the app.

like image 35
Phileo99 Avatar answered Nov 08 '22 09:11

Phileo99