Error while executing: am start -n错误解决方案
2023-09-14 09:06:43 时间
今天真机运行项目发现报了这个错误:
Error while executing: am start -n "pagekageName/pagekageName.ac.WelcomeActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=pagekageName/.ac.WelcomeActivity }
Error type 3
Error: Activity class {pagekageName/pagekageName.ac.WelcomeActivity} does not exist.
Error while Launching activity
出现这种状况的原因如下:
手动卸载了手机上的App,然后点击Android Studio的运行按钮就出现了上面的bug.死活运行不起来!
尝试了如下几种对我来说无效的方式:
1、clean project
2、Invalidate and Restart
3、Setting->Build,Execution,Deployment->Instant Run 设置checkbox为非选中状态
4、adb kill-server 然后adb start-server
5、重复关闭和打开手机的adb模式或者开发者选项
6、adb install D:\xxx.apk
上面几种方式都不行,然后博主想是不是手动卸载app没有卸载干净,就用了adb uninstall packageName命令运行了一下&#x
相关文章
- python安装包是出现错误解决
- git push 提交操作出现 fatal: Authentication failed for 错误 解决方案
- Win7 sql2005附加数据库失败 错误5120
- MSSQL 2008错误提示:更改对于登录sa失败
- 一些SAP UI5的控件无法按照预期渲染的错误分析方法和解决方案
- Atitit.js this错误指向window的解决方案
- Atitit.dwr3 不能显示错误详细信息的解决方案,控件显示错误详细信息的解决方案 java .net php
- paip.python错误解决9
- idea没有错误出现红色波浪线怎么去掉?
- class Ui MainWindow has no member named actionnew ui actionnew ssetIcon的错误解决方案
- vs2019报函数重定义错误的解决方案
- 在POM配置Maven plugin提示错误“Plugin execution not covered by lifecycle configuration”的解决方案
- SQL Server 附加数据库时报1813错误的解决方案
- 已超过了锁请求超时时段。 (Microsoft SQL Server,错误: 1222)
- 错误提示 0xc0000022,应用程序无法正常启动(0xc0000022)怎么办?