且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

活动类不存在(错误类型3)

更新时间:2022-01-18 02:45:58

在某些设备(LG Stylus 3 Android 7.0)上,当您将应用程序从桌面按下并移至回收站时,应用程序不会被删除来自设备.您可以稍后通过这种方式恢复已删除的应用程序,而无需从Google Play重新安装.如果是您的情况,您可能会看到此错误:

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

当尝试通过ADB从Android Studio重新安装应用程序时.转到设置->应用程序->单击您的应用程序并将其删除.错误消失后.

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.