如何改变目标建立在Android项目? [英] How to change target build on Android project?

查看:143
本文介绍了如何改变目标建立在Android项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在Eclipse中的Andr​​oid项目。

I currently have an Android project in Eclipse.

我创造了它与1.5(SDK 3)目标的构建。

I created it with a target build of 1.5 (sdk 3).

现在我想,这样它具有3 minSdk和targetSdk 8,改变它

Now I want to change it so that it has a minSdk of 3 and targetSdk of 8.

要做到这一点,我看到,我必须建立针对最新的SDK(2.2)

To do this I see that I must build against the newest SDK (2.2)

要做到这一点在Eclipse我右键单击我的项目,进入属性,点击Android和更改项目构建目标至Android 2.2,点击应用,然后确定。

To do this in Eclipse I right click on my project, go to properties, click on Android and change the project build target to Android 2.2 and click apply and then ok.

不过这似乎不会产生任何影响,当我再次尝试目标构建设置回了Android 1.5。

However this appears to have no affect and when I try it again the target build is set back at Android 1.5.

我缺少的一个步骤还是什么?

Am I missing a step or something?

推荐答案

右键单击该项目,然后单击属性。然后从左侧的树中选择Android的。然后,您可以选择在正确的目标版本。

Right click the project and click "Properties". Then select "Android" from the tree on the left. You can then select the target version on the right.

(注意:根据流行的评论如下,请确保您的属性,类路径和项目文件是可写的,否则将无法正常工作)

(Note as per the popular comment below, make sure your properties, classpath and project files are writable otherwise it won't work)

这篇关于如何改变目标建立在Android项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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