简体   繁体   English

我的SDK Manager可以识别SDK,但是调试时Eclipse无法识别

[英]My SDK Manager recognizes the SDK but Eclipse doesn't when debugging

As the title says, i tried to use Eclipse for android programming.I installed ADT plugin and set SDK directory.When i open SDK Manager in eclipse it recognizes and shows every SDK version that i'm expecting, but as it appears the IDE doesn't recognize the SDKs and i see this error in console: 如标题所示,我尝试使用Eclipse进行android编程。我安装了ADT插件并设置了SDK目录。当我在Eclipse中打开SDK Manager时,它可以识别并显示我期望的每个SDK版本,但看起来IDE并没有无法识别SDK,我在控制台中看到此错误:

Unable to resolve target 'android-19' 无法解析目标“ android-19”

I even tried to set SDK target version in my project's "Properties". 我什至尝试在项目的“属性”中设置SDK目标版本。 But there, in the "Android" window's "Project Bundle Target" box, i have only API 23 Option(that was default in the Eclipse's version that i installed). 但是在那里,在“ Android”窗口的“项目捆绑包目标”框中,我只有API 23 Option(这是我安装的Eclipse版本的默认选项)。

Now what is the problem and why i get that error and all API 19 classes can't be found in repository even though the SDK Manager recognize the SDK ? 现在是什么问题,为什么我会收到该错误,即使SDK Manager识别了SDK,也无法在存储库中找到所有API 19类?

Thank you in advance. 先感谢您。

But did you actually download API 19 through SDK Manager? 但是您实际上是否通过SDK Manager下载API 19? When you extract Android 4.4.2 (API 19) in SDK Manager tree does it said Status Installed? 当您在SDK Manager树中提取Android 4.4.2(API 19)时,是否显示状态已安装? If not then go to the android-sdk folder and run SDK manager.exe as administrator and download API 19 first. 如果不是,请转到android-sdk文件夹并以管理员身份运行SDK manager.exe并首先下载API 19。 Then you should be able to set it as default in project properties in eclipse. 然后,您应该能够在Eclipse的项目属性中将其设置为默认值。

And you should also check this thread: 并且您还应该检查此线程:

Unable to resolve target 'android-19' 无法解析目标“ android-19”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM