程序可以运行在模拟器中,但是签名后不能运行在真机上--报错
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 开头的包改名即可。
参考:
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.).
本文介绍了一种常见问题,即签名后的应用程序无法在真实设备上运行,并提供了具体的解决方案。问题表现为错误信息提示,涉及到特定包名冲突导致的安全限制。
9万+

被折叠的 条评论
为什么被折叠?



