Android SDK找不到错误 [英] Android SDK not found error

查看:174
本文介绍了Android SDK找不到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个使用Facebook SDK的Android项目。一切都很好,直到今天。当我尝试运行该项目时,会出现以下错误。

 无法解析目标android-10,直到SDK加载

虽然我有SDK 2.3.3(10级),但它并没有出现在项目中属性。在Eclipse的属性中,它表示,

 此Android SDK需要Android Developer Toolkit版本21.1.0或更高版本。当前版本为21.0.0.2012-10-31-0-17。请更新ADT到最新版本。 

但是,根据Android SDK Manager,我已经安装了最新版本(见下图) / p>



如何解决问题?任何帮助将不胜感激,谢谢提前。



编辑:



我我使用Mac OSX 10.8,我尝试重新启动eclipse和os。

解决方案

你已经更新了android sdk但没有更新与它匹配。最新的ADT版本是21.1.0,你需要得到这个。



转到eclipse>帮助>检查更新。



应该列出adt的最新更新。如果不行,请尝试:




  • 转到eclipse>帮助>安装新软件


  • 点击添加


  • 添加此网址: https://dl-ssl.google.com/android/eclipse/


  • 它会列出可用的更新 - 哪个应该是最好的21.1.0(最新)


  • 安装最新的adt,一切都应该是正常的。



I was working on an Android Project that uses Facebook SDK. Everything was fine until today. When I tried to run the project it gives the following error.

Unable to resolve target 'android-10' until the SDK is loaded

Although I have SDK 2.3.3 (Level 10), it doesn't appear in the project properties. In properties of Eclipse it says,

This Android SDK requires Android Developer Toolkit version 21.1.0 or above.  Current version is 21.0.0.2012-10-31-0-17.  Please update ADT to the latest version.

However, according to Android SDK Manager, I already installed the latest version (see image below).

How can I resolve the problem? Any help would be appreciated, thanks in advance.

Edit:

I'm using Mac OSX 10.8, and I tried restarting both eclipse and os.

解决方案

You have updated the android sdk but not updated the adt to match with it. The latest ADT release is 21.1.0 and you need to get this.

Go to eclipse > help > Check for updates.

It should list the latest update of adt. If it doesn't work, try this :

  • go to eclipse > help > Install new software

  • Click on add

  • add this url : https://dl-ssl.google.com/android/eclipse/

  • It will list the updates available- which should ideally be adt 21.1.0 (latest)

  • install the latest adt and everything should be fine.

这篇关于Android SDK找不到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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