Android Eclipse Support Library: Required version blank

送分小仙女□ 提交于 2019-12-03 14:54:50

问题


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?


回答1:


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 :)




回答2:


Actually this appears to be an actual bug in the SDK tools: https://code.google.com/p/android/issues/detail?id=60149 see #55 for a workaround without having to downgrade the SDK tools.



来源:https://stackoverflow.com/questions/18840424/android-eclipse-support-library-required-version-blank

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