Android在Eclipse中更改SDK版本?无法解析目标android-x [英] Android change SDK version in Eclipse? Unable to resolve target android-x

查看:634
本文介绍了Android在Eclipse中更改SDK版本?无法解析目标android-x的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了针对2.1 SDK的Android应用程序。此后我重新安装了Eclipse / Android SDK;通过新的安装,我想升级Android应用程序的依赖关系到2.2 SDK(因为我不想在我的机器上安装2.1)。这可能吗?我从eclipse得到以下错误:

  [2010-08-31 18:18:32  -  AndroidApplication]无法解析目标'android-7'


解决方案

eclipse可以在工作区中打开 default.properties 文件,并将项目目标更改为新的sdk( target = android-8 为2.2)。我不小心选择了1.5 sdk作为我的版本,并没有抓住它,直到很久以后,但更新和重新启动eclipse似乎已经完成了这个伎俩。


I developed an Android aplication against 2.1 SDK. Since then I have re-installed Eclipse/Android SDK; with the new install, I want to 'upgrade' the dependancy of the Android application to 2.2 SDK (because I dont want 2.1 installed on my machine). Is this possible? I am getting the following error from eclipse:

[2010-08-31 18:18:32 - AndroidApplication] Unable to resolve target 'android-7'

解决方案

If you're using eclipse you can open default.properties file in your workspace and change the project target to the new sdk (target=android-8 for 2.2). I accidentally selected the 1.5 sdk for my version and didn't catch it until much later, but updating that and restarting eclipse seemed to have done the trick.

这篇关于Android在Eclipse中更改SDK版本?无法解析目标android-x的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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