活动类不存在(错误类型 3) [英] Activity class does not exist (Error type 3)

查看:44
本文介绍了活动类不存在(错误类型 3)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带 android O 的设备 nexus5x,我在我的笔记本电脑和另一台电脑上开发了一个应用程序.但是,当我在笔记本电脑上启动该应用程序后想在另一台计算机上启动该应用程序时,我总是收到如下所述的错误.

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.

我认为这与 nexus5x 设置有关,但我不确切知道.我该怎么做才能解决这个问题?

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

P.S.:我已经多次尝试清理、重建项目、重命名活动、使缓存无效并重新启动,还禁用了实例运行,但对我不起作用.

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.

推荐答案

在某些设备 (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.

这篇关于活动类不存在(错误类型 3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆