程序可以运行在模拟器中,但是签名后不能运行在真机上--报错Error starting

本文介绍了一种常见问题,即签名后的应用程序无法在真实设备上运行,并提供了具体的解决方案。问题表现为错误信息提示,涉及到特定包名冲突导致的安全限制。

程序可以运行在模拟器中,但是签名后不能运行在真机上--报错

Error starting DemoApp: 'DemoApp' may not contain classes in com.rim, net.rim, net.blackberry, java or javax packages.

解决办法:

把项目DemoApp中的com.rim, net.rim, net.blackberry, java or javax 开头的包改名即可。

参考:

http://supportforums.blackberry.com/t5/Java-Development/Signed-code-still-generates-unsigned-error-on-device/m-p/243063

At the moment, you probably don't care much about packages, what to do with them or what they mean. I'll just say that for security reasons the JAVA Virtual Machine doesn't like it when your classes are in the same package as system classes (com.rim, net.rim, java, etc.).

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值