Android:如何保持向后兼容性?
根据此处找到的说明,让您的应用说明您的屏幕尺寸可以支持,您需要针对 Android 1.6 编译您的应用程序。
使用 minSdkVersion 和 targetSdkVersion 这也应该在 Android 1.5 上运行:
<uses-sdk android:minSdkVersion="3"
android:targetSdkVersion="4"/>
但是,当我尝试从 Eclipse 启动我的应用程序以在模拟的 1.5 中运行时,我收到以下错误:
Failed to find an AVD compatible with target 'Android 1.6'.
这是 eclipse 工具/模拟器的错误吗?或者如何让它正确定位 1.5,同时让我可以选择指定支持的屏幕?
According to the instructions found here, to make your app state which screen sizes you can support, you'll need to compile your app against Android 1.6.
Using the minSdkVersion and targetSdkVersion this should run also on Android 1.5:
<uses-sdk android:minSdkVersion="3"
android:targetSdkVersion="4"/>
However, when I try to launch my app from Eclipse to run in a emulated 1.5, I get the following error:
Failed to find an AVD compatible with target 'Android 1.6'.
Is this an error of the eclipse tools/emulator? Or how do I get it to also target 1.5 correctly while giving me the option to specify the supported screens?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以强制 Eclipse/ADT 显示所有可用目标的列表,并让您通过更改调试和运行配置来选择较旧的目标
You can force Eclipse/ADT to show you a list of all available targets and let you pick an older target by changing your debug and run configurations: