I have Android SDK Manager Revision 20.0. I have Ubuntu 12.04. I am in my office and there is a proxy configuration URL linked to a ".pac" file through which Internet is connected.
In Android SDK Manager, only Android SDK Tools is showing as "Installed" and no other packages or APIs are shown. I have tried to reload it many times but it's not coming.
I have downloaded the ".pac" file and updated the proxy in Android SDK Manager and tried with that. Also with "Forcing 'https://' to 'http://'. But nothing is working.
Please suggest me what to do.
A proxy is usually not so difficult to use, you just have to set an IP/URL and a port.
You can set a proxy for your android sdk manager in
Tools > Options
or just download the SDK components separately .
Ok. Problem solved. I went to .android/androidtools.cfg file and updated the Proxy port and Proxy Address manually. It cant be modified properly in Tools->Options . So, it's convenient.
Related
Today I set in my new working Environment and I have to install eclipse. I downloaded the ADT, and when I tried to download eclipse Plug-Ins from the link http:// it did not work because of Connection issues. I coped this Problem by downloading the Plug-Ins as a zip file and I added it.
Now, when I open eclipse and click on the SDK Manager to download the new APIs and the other stuff, I receive the below posted Screen shot. Is there any other way to install it?
It seems you are connecting to the internet through a firewall or proxy server. check this out and it should work. Also when you try to open the SDK manager try to run it as an administrator. because some folders are somehow protected, and when the SDK tries to write into it, it faces acess problems. So it is better to run the SDK as an administrator.
I have recently installed Android SDK on my computer running Windows 7 x64.
I then installed the Eclipse ADT plugin. I am running Eclipse Juno JEE.
When I attempt to run the SDK Manager through Eclipse, I receive the following errors:
Nothing I have tried has allowed me to download/install/update Android SDK and its packages.
I have tried https and forcing http
I have tried running calling program as administrator.
I have added Eclipse, SDK Manager to Firewall exceptions.
I have turned off my antivirus.
I have turned off my firewall.
I have tried various combinations of the above.
I can navigate my browser to both URLs (using Firefox). That should negate "Failed to read..." options 1 and 2. Option 3 seems to be the likely candidate as the XML files do not, in fact, include the <'xsd:schema'> tag. However, I don't know how, if, or where I might be able to point SDK Manager to a local, modified copy of these XML files, or if that would even solve anything.
Any help would be greatly appreciated.
Note: I have installed Android SDK/ Eclipse ADT Plugin on the same machine in the past. This is a fresh install after a recent reimage.
I am not sure if this answer's your question exactly to the point but yet I hope this helps you.
As u wrote it looks like you have downloaded eclipse from its website and android sdk separately from Android website. Why don't you download the Android SDK ADT package with pre-eclipse setup.
That will make your job way lot easier.
The file name would be something like this:
adt-bundle-windows-x86_64-20130729.zip
I am trying to install the Android SDK and I get the following error in the SDK Manager Logs -
Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: peer not authenticated
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml, reason: peer not authenticated
Done loading packages.
The error has something to do with proxy settings etc. I am running Ubuntu 11.10 and I had installed the SDK comfortably on the same setup yesterday.
As a workaround, I enabled the "Force https://... sources to be fetched using http://..." setting in the SDK Manager Tools > Options menu.
If you use Android Studio instead of the standalone SDK Manager, Choose "SDK Update Sites" in the "Android SDK" settings and click the checkbox in the lower part of the screen.
That seems to help. I suspect it is a server side problem, but I'm not sure about that.
Edit: Please note that using http instead of https is not really the best idea! In the worst case, a man-in-the-middle attack could inject malicious code into your Android SDK libraries that ends up in your APK. That's why it's called a workaround :)
In my particular case, I had the "Peer not authenticated" error on my android device as the system time on my device was set in the past, no issues with your system time?
Thanks to this page for pointing out the seemingly obvious... :)
I have faced the sam problem in Windows. Then it worked for me after doing the following steps:
Open cmd as administrator
ping developer.android.com
Go to the SDk manager and retry the installation
For me, in Windows 7, I had to run the SDK Manager as administrator (right click / run as administrator). From then SKD Manager downloaded and installed just fine.
It is very likely that you are getting this when you are within a corporate network and your corporate is using some sort of Browser proxy.
If that is the case and you are using VPN software to get on the corporate network, then disconnect from the VPN to allow your machine to be on the Internet "directly".
I disabled firewall and then tried running SDK Manager.exe as administrator.It started downloading some packages without fail though some packages are still failing to download with the error "Download interrupted: peer not authenticated".
So try to re run the sdk manager again it will download some packages now.
For those who have Mac enable "Force https://... sources to be fetched using http://..." going to:
SDK Manager Tools > Preferences > "Force https://... sources to be fetched using http://..."
P.S: Thanks to #danilo-bargen for the answer. He gave the answer for Windows
There is a package ca-certificates-java.
When using OpenJDK, it is installed automatically.
When using the Oracle's JDK with WebUpd8 PPA (Ubuntu), it is not.
I solved my problem in this way: First open the date and time settings of your computer and second: update it to the current date and time. Thats all.
I choose the "Force https://... sources to be fetched using http://..." option and restarted the "SDK Manager", but it still didn't work.
Then I right-clicked on the "Android SDK Tools" --> "SDK Manager" and choose "Run as Administrator". After which, it started to download the packages. I'm on Windows 10.
I'm having a problem in the Android SDK Manager in which it doesn't show that I have any packages available to install:
When I first installed the SDK, the only line I saw there was the Android SDK Tools. I was able to add the Platform-Tools and Android 4.2 package my copying and pasting from the Android ADT bundle that I downloaded separately.
The log is showing no issues:
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
Done loading packages.
And I can see available packages when I open up the XML the package URL returns.
Things I've tried:
1. Messing with the proxy in Tools > Options. I've tried both 127.0.0.1 and blank.
2. Opening the SDK Manager from Eclipse and directly (regular and as Administrator)
3. Uninstalling and re-installing the Android SDK. Downloading the latest versions of everything.
My system:
Windows 7 x64
Eclipse 4.2.1 Juno
SDK Manager 21.1
ADT 21.1
Any ideas? I suppose I could download the files by pulling URLs directly from the XML, but that isn't ideal.
Edit:
Since I can pull the repository-7.xml file using a browser, this doesn't look like a Firewall/AV/Network setup issue. It's a matter of the SDK Manager not loading up the package information it pulls back through the XML.
I got the same problem. For me the solution was putting a check on the "Force https://... sources to be fetched using http://..." box. It's on Android SDK Manager's preferences screen, below the proxy settings.
Also if this doesn't solve your problem, instead of downloading SDK again, I suggest you to download the Adt Bundle
So I was finally able to see all of the available packages. I accidentally hit the SDK Manager icon in Eclipse instead of the AVD Manager I meant to press:
And all of the available packages showed up.
Also, now when I open the SDK Manager using any of the other methods (directly from SDK directory or using the Window > Android SDK Manager menu option in Eclipse) all of those missing packages are now showing up.
i had the same problem.
and nothing works for me, nor clearing cache, nor restart eclipse, nor running sdk manager from eclipse, nor forcing https (from sdk manager options)
but every thing works fine when i used proxy!!
sdk manager-> tools-> options -> http proxy server
I know that I'm kind of late to the party, But I wanted to share my experience with this issue.
It turned out that the underlying Logger module used was the SL4J Android edition. Because I had overridden the version (using an external JAR file) that the SDK Manager used, a lot of things went wrong when it tried to load the Logger class. I discovered this when i tried to run
android-sdk\tools\android.bat update sdk --no-ui
which showed me an exception thrown by the ClassLoader of the logger module. Removing every trace I had of the SL4J modules in my %JAVA_HOME%\jre\lib\ext folder solved ALL of my problems.
I know this is old, but just wanted to add for posterity. I had this same problem and it turns out I had previously ran the SDK Manager as root (Ubuntu Linux). My user account didn't have permissions to overwrite the files and update the list. Once I corrected the permissions, it ran fine.
On Windows, if you are running the SDK Manager directly from ~Android\android-sdk directory, just right click and Run as administrator. That did the trick for me anyway.
Are you opening the Adroid SDK when you unzipped the folder downloaded?. Becouse i had a problem like you, and the solution was that i am taking a wrong folder path.
What i did:
Downloaded again the sdk and put it in C:/ (Another Path)
Check in this path if i get the same result.
install the new tools and android version from the new path.
becouse i see that u have your folder in C:/ProgramFile/Android......... and i have in this path only that i have installed.
Open Android SDKManager->Android SDK->SDK Update Site
Click on Launch Standalone Android SDK Manager you will see the packages.
On SDK manager go to tools -> options and select force https checkbox; now you should see all
After I have installed the Android SDK using the exe file available and the Android SDK manager has opened, I cannot see any of the additional packages that are needed to be installed. All that is listed is the Android SDK Tools under the Tools folder. The Extras folder also doesnt display anything under it. So without this, I am stuck right in the beginning. The log messages that I get also doesnt exactly point me to anywhere. Following are the log messages that I get:
Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml
Done loading packages.
Any help will be appreciated!
If your problem hasn't already been solved, try setting the proxy server from the SDK manager under the Tools -> Options menu. This is the mistake I had made. Perhaps this might help you too.
I had a similar problem because I was running SDK Manager from eclipse. The menu does not even have a Tools -> Options option. If this is the case just run the installed SDK Manager from your programs
Try disabling your firewall, it works for me