简体   繁体   中英

Android Eclipse Support Library: Required version blank

I have just downloaded and installed the latest ADT Bundle for Windows available from the Android Developer website. Following this, I installed all the packages in the SDK Manager, including the 'Android Support Library Rev. 18'. Finally, I installed the latest ADT through the 'Help > Install New Software...' menu in Eclipse.

I have strictly followed the following guide to create my first project:

http://developer.android.com/training/basics/firstapp/creating-project.html

But by the last step, I arrive at an error, showing the Support Library revision I have installed, and a required version of -blank-:

http://i.stack.imgur.com/CScNj.png (sorry, I can't post images yet)

I have checked through 'Window > Preference' that Eclipse is pointing to the right SDK directory. Mine contains the directories: add-ons, build-tools, docs, extras, platforms, platform-tools, samples, sources, system-images, temp, tools - I assume this is correct.

I have read elsewhere about moving files from \\extras\\android\\compatibility to \\extras\\android\\support, however I do not have the 'compatibility' directory. Additionally, my support folder contains the folders: samples, v4, v7, v13 - if that means anything (I assume the problem lies somewhere in here). I have installed the packages in the Android SDK Manager with admin privileges, and have tried creating an android project in Eclipse with admin privileges too.

Not sure where to go from here. Has anyone else experienced this error and can point me in the right direction?

实际上,这似乎是SDK工具中的实际错误: https//code.google.com/p/android/issues/detail?id = 60149请参阅#55了解解决方法,而无需降级SDK工具。

You may temporarily downgrade to previous version: just download http://dl-ssl.google.com/android/repository/tools_r22-windows.zip and extract it to your "..Android\\android-sdk\\tools" folder. It solved the problem in my case.

UPDATE: As @DogGuts suggested, a better way is to download correct templates from here and replace files in "\\Android\\android-sdk\\tools\\templates\\activities"

And the best solution is update SDK to 22.2.1 version :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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