tags:

views:

1507

answers:

1

Hi,

I have setup for Android development with 1.5 SDK on Mac O.S X - Eclipse 3.5. I want to upgrade the SDK, so as i followed to choose Window->Android SDK and AVD Manager from Eclipse. But it throws error as follows:

XML verification failed for https://dl-ssl.google.com/android/repository/repository.xml. Error: cvc-elt.1: Cannot find the declaration of element 'sdk:sdk- repository'. Failed to fetch URL

I tried "http" instead of https, but still getting the same error. I don't know why such crap error comes. If i see Android website, http://developer.android.com/intl/zh-CN/sdk/index.html its confusing.

Could someone guide me easily to update Android SDK to 2.x or later without uninstalling my current setup environment.

Thanks. I appreciate your kind suggestions.

+2  A: 

If you are using a very old version of the tools, you will need to download a newer starter package from http://developer.android.com/sdk/index.html

The reason is that the schema of the repository XML file changed when we released rev 5, but only tools in revision 4 or higher can adapt to schema changes.

By the way once you download the new starter package you can replace the tools folder from your previous installation with the new one. That way you don't have to change PATH env var or any other setup you have.

Xav
Thanks Xavier. I need to download the zip file which shows as "Mac OS X (intel)-android-sdk_r05-mac_86.zip 19871714 bytes-6fcfeed0e1c36624c926551637eb3308" available in your link provided and replace only "Tools" folder from this one to existing working copy of "~\Library\android-sdk-mac_x86-1.5_r3\Tools" folder. And then again do i need to try "Window->Android SDK and AVD Manager" to upgrade to new SDK?
And one more question, you were talking about old version of tools, where can i find what version of tools currently i have? I know there is a Tools folder in this path "~\Library\android-sdk-mac_x86-1.5_r3\Tools", but how do i know what version of tool is this?Could you please answer for me asap for my above query and this query?
As you said i downloaded "android-sdk-mac_86" zip file. Replaced only "Tools" folder from the new one to existing working folder. When i launch Eclipse now, it shows 'The Android SDK requires Android Developer Toolkit version 0.9.6 or above. Current version if 0.9.3.v200090 . Please update to latest version of ADT. What should i do now? Am i doing correct or wrong?
I resolved all the problems, now i'm able to download latest SDK's thru Android SDK and AVD Manager.
The version of the tools is now displayed in the "about" panel in the SDK/AVD Manager but I don't think it was in the first that shipped wit h the 1.5_r3 but it was probably version 1 or 2.
Xav
Hello, thank you. After did upgradation upto 2.1 SDK version, restarted my Macbook. I launch Eclipse - WIndows->Android SDK and AVD Manager, but it doesn't launch at all. Is it known issue? Why does clicking on Android SDK and AVD Manager, not launching after did upgrade?
I did launch Eclipse -clean terminal option (./eclipse -clean -vmargs -XstartOnFirstThread) but still "Android SDK and AVD Manager" doesn't launch.