android SDK manager, only show installed package - android

There is something wrong with my SDK manager, which only show the installed package. I couldn't install the others.
*I downloaded the ADT bundle for windows from http://developer.android.com/sdk/index.html
Does anyone know why? Thx!

Have you tried running the SDK Manager with Run as Administrator?
It always fails loading or downloading packages for me when it isn't ran as an admin.

I had the same problem and its about proxy issues I think. To solve it: in SDK manager go to
Tools > options
In other section check the below:
force https://... sources to be fetched using http://...
Then it will fetch all the packages!

I often get temporary connection errors on the dl-ssl.google.com repo site. To determine if it's a simple connectivity issue, you could attempt to connect to one of the repo file links via your browser.

This worked for me -
Keep HTTP proxy server and HTTP proxy port empty (from Tools -> option)
and check force https

Manager is unable to load list of packages from repository, probably it's proxy or firewall issue (as I know, it uses standard http). So, it just doesn't know anything about non-installed packages.
Check your internet connection and try again (there is a button "Reload" in the "Packages" menu)

You can download only SDK here: http://dl.google.com/android/installer_r22.0.5-windows.exe
and install all use this.

Check my solution on this issue. You may need to use a Proxy to connect to the internet then attempt your download. See this answer
I believe this should solve your problem, seemingly your having connection issues.

Related

Android SDK Manager doesn't work: Download interrupted: "Tag mismatch"

I'm getting started on android developing. I've "played" a little bit with eclipse and now I'm trying some online examples dealing with streaming.
The thing is it seems I don't have the packages installed as, while debugging, I got the following error message: Source not found.
So, I tried to get the packages going to the SDK manager, selecting them and clicking Install.
And my problem is the following: I can't install them and don't know why.
The "tag mismatch" error has to do with SSL and security certificates. While I don't know why the SSL is having a problem, in Android SDK manager you can skip using SSL encryption at all by clicking on tools >> options >> and check the box for "force https:// sources to be fetched using http://".
I was able to download the packages that way.
For me it was all about the Internet connection. Running wifi over 5Ghz/ac was too fast(!?) and the "tag mismatch"-problem was gone when connected through 2.4Ghz.
The same problem and solution applied when installing some new gradle dependencies in Android Studio.
When facing this error, I manage to complete the download using the menu in SDK Manager
Tools > Options > Manifest Cache > Clear Cache
I got same error:
Warning: An error occurred while preparing SDK package Google APIs ARM 64 v8a System Image: Tag mismatch!.
It happens when I use https with unstable networking (wifi).
Using --no_https option helped me.
I also always have this problem, one thing that has worked for me so far is slowing down my download by running some other download that would consume bandwidth. Whenever I simultaneously download, it works fine; it's weird; I can't explain why
For me the solution was Configure -> SDK Manager -> Tools -> Web browser. I changed default browser to Chrome. Firefox had some problems.
Just download the most recent android version.
here is the step by step directions of how to install SDK:
http://developer.android.com/sdk/installing/index.html?pkg=adt
How to add more packages:
http://developer.android.com/sdk/installing/adding-packages.html
The download progress is shown at the bottom of the SDK Manager window. Do not exit the SDK Manager or it will cancel the download.
Let me know if this is still not helping you.....

Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Using Android SDK Manager when I try to update it just gives the following messages about not being able to connect. I've tried disabled firewall and anti malware. I also tried to run as admin and move to c:\android. I'm running windows 7 64bit. I've also tried forcing etc.
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to refused
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to refused
Follow the following steps if you are using proxy server:
Open Eclipse
Window >> Android SDK Manager >> Option
Input your proxy server and port.
Hope this helps.
Go to Internet Explorer, into options -> connections -> Lan settings. There should be an automatic config script option, copy the url, paste it into a browser, this downloads the config file, opened the file up in notepad and there will be a proxy address and a port number in there like 192.234.10.23:88 paste the address into the proxy field and the port (88) into the port field in the Android SDK manager Tools -> Options dialog.
GoTo Tools -> Options in SDK Manager. Check https to force to http and try... Worked for me
I got the solution for the Android Studio installation after trying everything that I could find on the Internet. If you're using Android Studio and getting this error:
Find [Path_to_Android_SDK]\sdk\tools\android.bat.
In my case, it was in C:\Users\Nathan\AppData\Local\Android\android-studio\sdk\tools\android.bat.
Right-click it, hit Edit, and scroll all the way down to the bottom.
Find where it says: call %java_exe% %REMOTE_DEBUG% ...
Replace that with call %java_exe% -Djava.net.preferIPv4Stack=true %REMOTE_DEBUG% ...
Restart Android Studio/SDK and everything works. This fixed many issues for me, including being unable to fetch XML files or create new projects.
Run SDK Manager as Admin will solve your problem
After 7 long hours of searching I finally found the way!!
None of the above solutions worked, only one of them pointed towards the issue!
If you are on Win7, then your Firewall blocks the SDK Manager from retrieving the addon list.
You will have to add "android.bat" and "java.exe" to the trusted files and bingo! everything will start working!!
Do the following.
Close the sdk manager and eclipse.
Go to the folder where you have stored your adt.
In that adt folder you'll find a folder known as tools.
Make a copy of the contents of that folder and paste it in a folder called copytools.
Now go to the command prompt and go to the location of the copytools.
Then execute the command android.bat the sdk manager will start.
Now update all the plugins you want. It'll update your original folder.
After the update delete the copy.
Enjoy. Hope this helps.
I was facing same problem below is the solution that worked for me
First Go to Android SDK Manager then
select Tools then,
select Options
then check the box "Force https://... sources to be fetched using http://..."
hope it will help you also.
As srijan said,
Check your actual proxy settings, if you are using a proxy script to access the web, it might be (by default) : proxy serveur: proxy / proxy port: 8080
You may have these informations in Inter Explorer, Options, Connexions settings ..
Worked for me
You may also need to add rules to your firewall/antivirus.
If you are on Windows 7, simply run Eclipse with Admin privilege will solve this issue.
Just tried this on my Windows 7 64bits OS.
Sometime you need to add proxy setting in your SDK Manager
GoTO->Windows->SDK Manager->Tool->Otions
There give SERVER: proxy and PORT:8080
I had this issue running within a corporate network. I added a DNS entry for google DNS at 8.8.8.8, then my own corporate DNS server below this. Worked great after that.
just run the android sdk manager , go to tools then obtions and a new window will apears
mark the three checkboxes at the bottom and close it
it worked for me
I had the same problem today and it costed me all day :-(
I tried all of the suggestions above, but none of them did the work.
At the end, I uninstalled Comodo Firewall, and everything worked fine.
Before uninstalling, I tried to add the all relevant files as trusted application in the comodo firewall, but it didn't work
I had this issue with MacOS. I had to uncheck "use download cache" under Android SDK Manager preferences. This worked. I also recreated the cache folder and set my user as the owner then check user download cache. This also worked.
Using freegate as agent in China.
Run Freegate,latest version.
Run SDK Manager, Tools -> Options, Proxy Server 127.0.0.1, Port 8580.
I hope it will help you.

Unable to download SDK components from android.com

Running Windows XP, 32 bit.
I had no problem downloading the installer and android-sdk_r10-windows.zip, but when running the installer, it gets stuck opening
https://dl-ssl.google.com/android/repository.xml
When I try browsing to that URL, I get a 404.
I've read some of the other answers suggested, but most either direct me to the sdk download (already done) or mention some obscure command line approach that doesn't seem relevant to a Windows installation.
Thanks for any help!
Dave
First thing to try is to click on the Settings tab and turn on the option to Force https sources to be fetched using http. Then try to refresh the packages.
If that doesn't help are you behind a corporate proxy? If so make sure your proxy server and port are correct in the Settings tab.
If that doesn't work try http://code.google.com/p/android/issues/detail?id=5944#c7 .
And if that doesn't work try Download the Android SDK components for offline install .

Android SDK Manager gives "Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml" error when selecting repository

I'm trying to install a platform but when I open Android Manager then I click Available Software then select the
https://dl-ssl.google.com/android/repository/repository.xml repository
I get this error:
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml
I have also tried downloading by clicking on force "http:" for all "https:" downloads on settings panel but it still doesn't help.
I'm working on Windows Vista.
Try this solution and it worked. this problem is caused because ADB is unable to connect to the android servers to fetch updates. (If at home try turning off firewall)
Goto Android SDK Manager
c://android-sdk-windows/ open
SDK-Manager
Click Settings - Will be
asked for a proxy.
If have one enter
the IP address and the port number.
If not turn off your firewall.
Check
"Force https://... " (to force SDK Manager to use http, not https)
This should work immediately.
If you enter the URL in a browser and then look at the source code of the page you will see that an XML document is returned.
The reason why that URL would work in a browser but not in the android manager might be that you are required to specify a proxy server. In Eclipse (3.5.2) the proxy settings can be found here: "Window" -> "Preferences" -> "General" -> "Network Connections"
All that was necessary for me, a Ubuntu user, was to change the owner of the ~/.android directory. In a terminal type the following command:
sudo chown -R username:username ~/.android
Obviously, you must replace "username" (twice) with your username.
I wasn't sure if I should post this as an answer because the original poster's question was concerning Windows Vista, not Ubuntu. However I found this post whilst searching for the answer on Ubuntu so I believe it is pertinent. I don't have sufficient reputation to comment on +Maher Gamal's answer, though, which is what lead me to this answer. Hopefully someone else finds it useful!
In Mac OS X, the solution is creating the file androidtool.cfg in our user .android folder and then add this line. Sure it is working also for Linux
sdkman.force.http=true
I hope that helps!
Open Android SDK Manager and open menu Tools->Options
in Proxy Setting Part
Set your proxy and ok
Investigating this error on my new Win 7 laptop, I found my ADT plugin to be missing. By adding this I solved the problem:
Downloading the ADT Plugin
Use the Update Manager feature of your Eclipse installation to install the latest revision of ADT on your development computer.
Assuming that you have a compatible version of the Eclipse IDE installed, as described in Preparing for Installation, above, follow these steps to download the ADT plugin and install it in your Eclipse environment.
Start Eclipse, then select Help > Install New Software....
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK
Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.
Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.
I am using Kaspersky. I just turned it off and the issue was solved!
I got the solution for the Android Studio installation after trying everything that I could find on the Internet. If you're using Android Studio and getting this error:
Find [Path_to_Android_SDK]\sdk\tools\android.bat.
In my case, it was in C:\Users\Nathan\AppData\Local\Android\android-studio\sdk\tools\android.bat.
Right-click it, hit Edit, and scroll all the way down to the bottom.
Find where it says: call %java_exe% %REMOTE_DEBUG% ...
Replace that with call %java_exe% -Djava.net.preferIPv4Stack=true %REMOTE_DEBUG% ...
Restart Android Studio/SDK and everything works. This fixed many issues for me, including being unable to fetch XML files or create new projects.
I had the same problem: the latest update failed to install because it couldn't
rename the tools folder in android-sdk-windows. I'm using AVG antivirus and
disabling it didn't help, but I don't think it had anything to do with the AV program
anyway.
Fact is, running the Android SDK setup apparently uses items in the
"android-sdk-windows\tools" directory. I'm on Win Vista x32 so maybe that causes some
unique situation - I'm not sure.
Solution:
I made a copy of the tools folder itself (keeping it at the same directory tree
level, thus "tools" and "tools-copy" were both in the "android-sdk-windows" folder).
I ran Android.bat from that copy
I ran the update without problems (it updated the original,
not-being-used-at-the-moment tools folder, among whatever other items it needed to).
I closed the SDK, deleted the folder (I had to kill the adb.exe process first - not
sure why that always persists but you can't delete the folder without doing that).
I restarted the SDK from the normal (now-updated) tools folder. Worked like a charm!
Note that simply killing adb.exe was NOT sufficient to get around the original
issue... only by copying the tools folder and using the copy to run Android for the
duration of the update process was enough to rectify the problem.
I hope this helps others... it's quite vexing to have to spend time resolving basic
issues like this just to run an update.
If you open /Users/{your name}/android sdks/tools/android (double click it), then click on "Android SDK Manager" menu and then "Preferences" and then you can change your proxy settings specifically for Android SDK Manager. These proxy settings also apply to "Android SDK Manager" if used within Eclipse.
After 7 long hours of searching I finally found the way!!
None of the above solutions worked, only one of them pointed towards the issue!
If you are on Win7, then your Firewall blocks the SDK Manager from retrieving the addon list.
You will have to add "android.bat" and "java.exe" to the trusted files and bingo! everything will start working!!
I had the same problem, made all the workarounds you advised: still the same error.
I updated Eclipse via "Help / Check for updates" and now everything is ok.
This update brought a completely new version of the Android SDK Manager.
Also, try to turn off your firewall and try to update with link.
I had the same problem. I use Ubuntu 12.04. I tried disabling ipv6.
Modify the /etc/sysctl.conf and add the following:
#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Then restart the machine and check. I think this may be a ipv6 issue even in Windows OS.
I had a similar situation where I had the proxy settings already set and the SDK manager wasn't able to modify them permanently. Modifying manually the ~/.android/androidtool.cfg file fixed the issue.
Had the same issue on 64 bit win7 machine on company network behind proxy with automatically detected settings.
After a number of trials and failures the following workaround proved to be successful:
sharing my phone's wifi internet connection via USB
Best regards,
Robert
I found another way without setting proxy. I'm currently using an antivirus which has a firewall program. Then, I turn off this firewall and now I can fetch that URL.
If still doesn't work, try to turn off Firewall on your PC, such as Windows Firewall.

Not able to add android platform using AVD manager - not able to fetch the url from AVD

I wanted to start working on android but having installation issues. When I start the AVD Manager and check the repository.xml url it gives me an error "... not able to fetch the url. Connection timeout." the same thing happens if I use http or https but if i try to open the url in my browser, it returns the response. I do not have a manual proxy set in the browser but do have an automatic proxy configuration url. I tried copying that url to the internet section in AVD but still no response returned. Also, we do not have the permission to turn off the firewall.
Is there a place where i can download the SDK Platform Android (1.6 preferred)?
if you look in the folder where you have the sdk installed, you will see both the avd manager and the sdk manager. click on the sdk manager and you will be able to install additional platforms from there. Still not showing up in my AVD manager, but Android 4.0 is downloading so i no longer care :)
Consult this
HTH
I've been working on the android developer "quick start" for about a week. This problem has not been solved or at least not explained anywhere. It's been happening for a couple of years now. 2008 is the first record of a problem. All suggestions have failed. "change 'https' to 'http'" etc.
cM
I came across this with a similar answer.
I used the installer, and it didn't install the AVD manager. Going back to the developer files I grabbed the 'rar' and ran the 'adk manager' to get the files I needed. This installed the files to set the target when creating the AVD.
Worked for me.

Categories

Resources