Android的:如何保持向后兼容? [英] Android: How to maintain backwards-compatibility?

查看:253
本文介绍了Android的:如何保持向后兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据指示找到这里,让您的应用状态,这屏幕大小可以支持,你需要编写你的应用程序对Android 1.6的。

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.

使用的minSdkVersion和targetSdkVersion这应该在Android 1.5还运行:

Using the minSdkVersion and targetSdkVersion this should run also on Android 1.5:

  <uses-sdk android:minSdkVersion="3" 
          android:targetSdkVersion="4"/>

然而,当我尝试推出从Eclipse的我的应用程序在一个模拟1.5上运行,我收到以下错误:

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'.

这是Eclipse工具/仿真器的错误?或者,我怎么得到它也瞄准1.5正确而给我指定支持屏幕的选项?

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?

推荐答案

您可以强制的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:


  1. 选择运行>调试配置... (或运行配置)

  2. 在左侧窗格中,选择 Android应用程序>的(项目)

  3. 在主视图中打开的目标标签

  4. 对于部署目标选择模式,选择手动

  5. preSS 应用,然后关闭

  1. Select Run > Debug Configurations... (or Run Configurations)
  2. In the left pane, select Android Application > (your project)
  3. Open the Target tab in the main view
  4. For 'Deployment Target Selection Mode', choose Manual
  5. Press Apply, then Close

这篇关于Android的:如何保持向后兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆