When Android sdk2.0 is installed with AVD manager in Ubuntu today, the following error occurs:
Failed to fetchurl https://dl-ssl.google.com/android/repository/repository.xml
As prompted, check the settings:
Force https: //... sources to be fetched using http ://...,
And click Save & apply, but the following message is still displayed:
Failed to fetchurl https://dl-ssl.google.com/android/repository/repository.xml
The force function is ineffective when it should be set. I searched the following online. Many people have encountered similar problems, and the android official team has not proposed a solution, but a method was found in Google group (see: http://groups.google.com/group/android-developers/browse_thread/thread/63a44163a8d07cd9? PLI = 1 ):
You can set an environment variable in the command line before running the android update SDK:
Export gdk_native_windows = true
Then, execute the android update SDK, set force https: //... sources to be fetched using http: //..., and click Save & apply.
In fact, I later found that no environment variables can be set. The main reason for the above problem is that I checked force ...... After that, click the Save & Apply button with the mouse. The UI does not respond to the click event. A very simple method is to press enter because the check box is complete, the Default Option Button is save & apply. Press enter directly. If it is not the default button, you can click it to change it to the selected button, and then press Enter.
This error may occur on the window because you have not selected the force option!
Switch to the setting panel and select!
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/JiangBo_HIT/archive/2009/11/24/4860996.aspx