为什么我无法在 2.2.1 设备上安装 2.3.1 项目?
请对我有点耐心。我已经阅读了 andriod.com 上的开发指南,并且阅读了一些教程。例如,我已经浏览过 Hello World 应用程序,一切看起来都很好。我一头扎进去,使用 ADT 导出导出一个签名包,我使用调试密钥对 apk 文件进行签名。我将 apk 复制到我的 Android 设备上,当我尝试运行它时,得到的只是无法解析错误。它在虚拟设备上运行良好。我的设备是运行 android 2.2.1 的 Archos70。
现在我刚刚注意到我的项目适用于 Android 2.3.1,这可能是问题所在吗?它是如此简单的应用程序,我认为这真的会影响它吗?
Please have a little patience with me. I have been going through the Dev Guide on andriod.com and I have went through some of the tutorials. For example I have gone through the Hello World app, everything seems fine. I went a head and used the ADT export to export a signed packaged that I used the debug key to sign the apk file. I copied the apk to my android device and all I get when I try to run it is a could not parse error. It works fine on the virtual devices. My device is an Archos70 running android 2.2.1.
Now I just noticed that my project is for Android 2.3.1, could that be the issue? Its so simple of an app I would think that really affect it would it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
p是的,这就是问题所在。降级到以前的 API 版本。并在您的manifest.xml中设置Android操作系统的最低版本。
编辑:如何设置最低 SDK 版本:
pYes, that's the issue. Downgrade to former API version. And set in your manifest.xml minimum version of Android OS.
Edit: How you set minimum SDK version:
您需要在清单文件中将 minSdk 版本设置为更小,例如设置为 4。希望有帮助。
You need to set your minSdk version to smaller for example to 4 in your manifest file. Hope that it helps.