I'm trying to download platform-tools from Sdk Manager. but when I run :C:\Users\tavak\AppData\Local\Android\Sdk\tools\bin\sdkmanager --list
or any other commands related like \sdkmanager platform-tools
I get this error :
Warning: Failed to download any source lists!
Warning: java.io.FileNotFoundException: https://dl.google.com/android/repository/repository2-1.xml
The antivirus is disabled , and I'm running a proxy in whole device. I can successfully open the url in my browser. help me if possible !
If you are using proxy, you need to specify your proxy settings:
sdkmanager --list --verbose --no_https --proxy=http --proxy_host=127.0.0.1 --proxy_port=8118
maybe the best solution for a person under blockade like me , is using faster proxys or I can download the sdk parts , manually. the needed ones include :
platform-tools
builds
emulator
platforms
...
It really bothers but no way !
Related
I'm trying to build android applications with the command line tools in Windows 10.
I was able to install the platform tools and the platform with the sdkmanager with no problem and also accepted all of the licenses.
But when I try to install the build tools using this command
./sdkmanager --sdk_root=C:/Android --verbose "build-tools;27.0.3" it fails and
I get these messages running on verbose:
Info: Parsing C:\Android\cmdline-tools\4.0\package.xml
Info: Parsing C:\Android\platform-tools\package.xml
Info: File C:\Users\PC\.android\repositories.cfg could not be loaded.
Warning: Dependant package with key emulator not found!
Warning: Unable to compute a complete list of dependencies.
I found this question which had the same warning: Error "Dependent package with key emulator not found" while updating Android SDK and tools
But it seems that the emulator package doesn't exist anymore and I don't think it has to do with why I am unable to install the build-tools
Any help will be appreciated.
Open the bin folder
On the location bar at the top, remove everything for it and type cmd
Now type this command:-
sdkmanager.bat "build-tools;latest" --sdk_root=../
After this command, type this command:-
sdkmanager.bat "platforms;android-32" --sdk_root=../
NOTE - Upper command android-32.0.0 is based on the time I am typing this
And this will work in most the cases, or try reinstalling or consider watching the video tutorials on YouTube
I was trying to install Android SDK with the help of the SDK command line tools downloaded from the link https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
on my Linux Ubuntu 16.04 PC.
i run the command following command for installation
./android update sdk
but the installation has stopped and gave the following message on terminal
------------------------------------------------------------------------------------------------------------------------------------
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
"android" SDK commands can be translated to sdkmanager commands on a best-effort basis.
Continue? (This prompt can be suppressed with the--use-sdk-wrapper command-line argument or by setting the USE_SDK_WRAPPER environment variable) [y/N]: y
Running /home/user/Android/Sdk/bin/sdkmanager --update
Warning: java.net.SocketException: Connection reset
Warning: Failed to download any source lists!
Done
-----------------------------------------------------------------------------------------------------------------------------------
how to solve this error.or suggest me a way to install android sdk on my linux pc without installing android studio.
A bit late, but in the same situation. It looks like this isn't an error, but the way the tools evolved: they are pushing users to use Android Studio if they want the GUI for the sdk manager, it's usable only from the IDE.
You still have the command line available at bin/sdkmanager in this folder from the download, and instructions can be found here, but they are not great, either, so I'll share what I did:
downloaded the latest compressed file from this page (link way down there)
unzipped somewhere (I chose /opt/Android/android-sdk)
created a symlink to add sdkmanager to my path (ln -s /opt/Android/android-tools/bin/sdkmanager ~/.local/bin/sdkmanager)
installed platform tools and build tools for kitkat and up using sdkmanager "platform-tools" "platforms;android-19" "build-tools;19.1.0" (sudo may be needed)
You can check the versions available using sdkmanager --list, and figure what you need to support and download tools for other versions. The download will not show any kind of progress, it'll only tell you it's done after a while.
I suppose it's not a big deal to keep Android Studio installed solely to have access to the sdk manager GUI, but I'll make do with the command line tools. That's very shady of Google, specially to people not really into their hacked up Intellij version.
I use Ubuntu 14.04 LTS.
My JDK version is 1.8.0_31.
I downloaded Android Studio archive, unpacked it and ran a studio.sh file. But every time the installation begins an error occurs:
Refresh Sources:
Failed to fetch URL http ://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: File not found
Fetched Add-ons List successfully
Refresh Sources
Failed to fetch URL http ://dl-ssl.google.com/android/repository/repository-10.xml, reason: File not found
Refresh Sources:
Failed to fetch URL http ://dl-ssl.google.com/android/repository/repository-10.xml, reason: File not found
There is nothing to install or update.
The following SDK components were not installed: build-tools-21.1.1, source-21, sys-img-x86-addon-google_apis-google-21, extra-android-m2repository, android-21, extra-google-m2repository, addon-google_apis-google-21, platform-tools
Moreover, when I run the studio.sh file following text appears in terminal:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0
Also I tried to install the Android Studio from Paolo Rotolo's repository, but the same problem occurs.
I am rookie in Ubuntu, so I hope only for your help.
I also met this problem. Even I can download the xml files from browser, the android update sdk process keep reporting file not found. A search from google leads me to here:
https://code.google.com/p/android/issues/detail?id=76268
The first anwser reminds me of permission problem of ~/.android. I checked, and found that this hidden directory is not owned by me. Change the owner of the directory solve the problem.
Its not that tough actually, just follow the following steps:
first of all make sure your ubuntu is uptodate. open >Unity>Software updater.
Install latest Jdk - in my case its Java8
Installing java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Make it default version
sudo apt-get install oracle-java8-set-default
Installing Android Studio
Download Android Studio from here, use All Android Studio Packages
Extract the archive file into an appropriate location for your applications, eg: /opt. Use the filename of your downloaded archive, in my example android-studio-ide-141.2178183-linux.zip
sudo unzip android-studio-ide-141.2178183-linux.zip -d /opt
To launch Android Studio, navigate to the /opt/android-studio/bin directory in a terminal and execute ./studio.sh. Or use a desktop file, see below. Make sure you type "./studio.sh"
You may want to add /opt/android-studio/bin to your PATH environmental variable so that you can start Android Studio from any directory.
sudo studio.sh
running it as root solved for me
I am getting the following messages while Running the Android SDK Manager through eclipse.
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-10.xml, reason: File not found
But i am able to open them through the browser
System and software information.
1) Mac osx 10.8.5 (x86)
2) Latest Android SDK for mac
3) Java Run Time Environment JRE 7
I have tried with the all options which were explained in the following URL
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused
The reason may be related with no access to "$HOME/.android" folder.
Details here
Open Terminal
Go to ~/android-sdks/tools (your users local directory/android-sdks/tools)
Run the android sdk manager as Super User -
sudo android
Collect all the repository details and exit
Now run as your normal user via eclipse.
If this failed then try this.
You can just fix it by running eclipse as an administrator:
In the Terminal, type "sudo <your installation folder>/eclipse/Eclipse.app/Contents/MacOS/eclipse" and if needed tick "Force https://.. sources to be fetched using http://...
It worked for me on my Mac(OS X 10.8.5).
I had Windows VM on MacOSX and probably problems with UNC paths, spaces in names or rights on folders.
The solution was not to use Download cache (uncheck it).
For linux or ubuntu users:
From the command-line you can directly trigger an update by
executing:
sudo <your sdk path> tools/android update sdk --no-ui
I have installed the Android SDK but I can't get the Adroid SDK manager to open.
I have looked everywhere on the internet and this is what I have already done which didn't help:
1. run sdk as administrator
2. adding a path pointing to the JDK in all of these forms :
C:\Program Files\Java\jdk1.7.0_21\bin;%SystemRoot%\system32;
C:\Program Files\Java\jdk1.7.0_21\bin;
C:\Program Files\Java\jdk1.7.0_21\
C:\Program Files\Java\jdk1.7.0_21
C:/Program Files/Java/jdk1.7.0_21/bin;
none of them worked ..:-(
3.
Step #1: Open up a command prompt.
Step #2: Use the cd command to move to wherever you installed your Android SDK.
Step #3: Run tools\android.
after doing it I got an error message that said that :
ERROR: No suitable Java found. In order to properly use the Android Developer
Tools, you need a suitable version of Java installed on your system.
4. deleting 3 times the sdk and reinstalling it.
5. Deleting the .android folder from the user (C:/Users/[User Name]) directory
By the way I have Windows 7 , and I have downloaded the 64 -bits sdk.
I am so helpless.. I ll appreciate a lot a solution...
Shiran
I had the same problem. Try to add an environment variable :
JAVA_HOME : "C:\Java\jdk1.7.0_25\".
It solves problem for me.
WRT Ubuntu 14.04:
You may not have java installed globally in your machine. My fix was to do:
sudo apt-get install openjdk-7-jdk
After was I able to run the SDK Manager.