Android Config in Eclipse - SDK Preferences wants …\Platforms, but SDK doesn't come with one

£可爱£侵袭症+ 提交于 2019-12-23 05:13:26

问题


I'm installing and configuring Eclipse Galileo 3.52 on a PC following the instructions on Eclipse ADT

All the steps in "Downloading the ADT Plugin" go fine with no errors. But when I get to the next step "Configuring the ADT Plugin" it fails when I set my SDK location, saying that it can't find android-sdk-windows\platforms.

But no kidding - I'm using the android-sdk_r06-windows SDK and the Readme file says, "The Android SDK archive now only contains the tools. It no longer comes populated with a specific Android platform or Google add-on. Instead you use the SDK Manager to install or update SDK components such as platforms, tools, add-ons, and documentation." How how I do this? Do I have to use an older version of the SDK to go with this older version of Eclipse?

Thanks in advance.


To QRohlf:

I tried that. I ran it from the command line and got the same error:

[INFO] Starting Android SDK and AVD Manager

Error: Error parsing the sdk.

Error: C:\Documents and Settings\Peter\My Documents\SW\AndroidSDK\android-sdk-windows\platforms is missing.

Error: Unable to parse SDK content.

"platforms" is missing because it's not included in this version of the SDK. It says so in the Readme file. I'm trying to follow the instructions in the link in the original post which imply this can be all done from the IDE but I don't know what step is supposed to create the platforms folder.

It's tempting to manually create the folder but I want to do this 'by the book' as the Eclipse/Android team intended because I'm making a 'getting started' guide for some students.


回答1:


I redid my installation from scratch but this time I put the SDK higher in the file system - C:\SDKs\AndroidSDK.... and this time it was happy.

I don't know if it was having a problem with the long pathname or the space between "My" and "Documents" or what, but the issue is now resolved.




回答2:


Run the Sdk Setup.exe in android-sdk_r06-windows and install the addons. See Adding SDK Components for detailed instructions.



来源:https://stackoverflow.com/questions/3514985/android-config-in-eclipse-sdk-preferences-wants-platforms-but-sdk-doesnt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!