Home » Android » Error while Launching activity after deleting app from phone

Error while Launching activity after deleting app from phone

Posted by: admin November 1, 2017 Leave a comment

Questions:

I deleted my test app from my phone. Now I try to run app again within android studio. I expected that it would recreate the app. Instead I get this error:

Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=mobapptut.com.camera2videoimage/.LoginActivity }
Error type 3
Error: Activity class {mobapptut.com.camera2videoimage/mobapptut.com.camera2videoimage.LoginActivity} does not exist.

Error while Launching activity

How can I address this?

Answers:

Did you try to check the “Deploy application” checkbox in the Run/Debug Configuration screen, under the General tab like is mentioned in this post?
Try also a clean a rebuild and check that you do not have in Gradle
apply plugin: 'android-library'

Questions:
Answers:

Try using:
“adb uninstall sample_package_path”
This has worked for me in older OS versions(sometimes the app doesn’t uninstall properly)

Multiple users in O OS can also be the possible cause for this type_3 error.