Error: Activity class {com.example.wusuowei.uniapp_simple/io.dcloud.PandoraEntry} does not exist.

问题:
uniapp离线打包时,将原本烧到手机的apk删除后,重新编译,出现了下面的错误:
$ adb shell am start -n “com.example.wusuowei.uniapp_simple/io.dcloud.PandoraEntry” -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while executing: am start -n “com.example.wusuowei.uniapp_simple/io.dcloud.PandoraEntry” -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.wusuowei.uniapp_simple/io.dcloud.PandoraEntry }
Error type 3
Error: Activity class {com.example.wusuowei.uniapp_simple/io.dcloud.PandoraEntry} does not exist.

Error while Launching activity

解决方案:
1、进入安卓sdk的安装路径,找到platform-tools文件夹,可看到该文件夹中有“adb.exe”,如下图:
在这里插入图片描述
2、在上一步中的路径中敲“cmd”,回车后进入cmd命令行,如下图:
在这里插入图片描述
3、在命令行中输入“adb uninstall 项目包名(packagename)”,如下图com.example.wusuowei.uniapp_simple是我的包名,卸载成功可看到success
在这里插入图片描述
4、回到AndroidStudio中,重新build,如果没有报错,即可重新编译到手机上,亲测可行!

参考文档:https://ask.dcloud.net.cn/question/55341

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值