Below error displays during installation:
Done loading packages.
Preparing to install archives
Downloading Android SDK Platform-tools, revision 26.0.2
Download interrupted: Connection to https://dl.google.com refused
Done. Nothing was installed.
Preparing to install archives
Downloading Android SDK Platform-tools, revision 26.0.2
Download finished with wrong checksum. Expected 98832431e339c82be1fe910a733a3782071200fd, got aa3ef6f18eff4b8f12dbdf980647a6ce6c2ebe8c.
Done. Nothing was installed.
I had to install it by myself.
Download link:
https://developer.android.com/studio/releases/platform-tools.html
Select the zip file SDK Platform-Tools for Windows and extract it.
Move it into your android directory, in my case it was: C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.27659.1188.
Now you have the new directory: C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.27659.1188\platform-tools.
Run SDK Manager.exe again.
In my case, the error was gone. I had to install 4 packages first and then I had to install 3 packages after that. Now it run perfect.
You can just extract the archive the SDK Manager already downloaded:
Go to your android-sdk directory
Enter the 'temp' folder
Extract the 'platform-tools_r26.0.2-windows.zip' to the android-sdk root directory
But this makes the checksum pointless, it might be better to wait until it is fixed unless you need the new version now.
I resolved this by first removing the Android SDK Platform-tools using the Android SDK Manager. Then I used the direct download link provided by Umair Malhi above (https://dl.google.com/android/repository/platform-tools_r26.0.2-windows.zip) then extracted the platform-tools folder into the SDK folder (which in my case is C:\ProgramData\Microsoft\AndroidSDK\25). If you rerun Android SDK Manager, the issue is resolved.
I had the same issue, after running Visual Studio as an Administrator then the updates went through successfully.
EDIT: Newer versions of VS now prompts you to run VS in Administrator mode when you click on Android SDK Platform Tools.
I had the same checksum issue, until I just updated to Android Studio 3.0. Now the Android SDK Platform-tools 26.0.2 downloads and installs as expected. Not sure if the issue still exists for Android Studio 2.x or it was fixed separately, but it's worth trying again now.
In my case all I needed to do was run Android Studio as administrator and the the packages installed with no problem.
I have the same problem, in my case I hadn't write rules to platform-tools folder. So I gave me write rules with the command:
sudo chmod -R ugo+rw
Related
I am trying to build my first app in android studio and getting an error "adb.exe has stopped working". I am working on Windows xp 32 bit system.
Have tried several solutions available online including
-kill server/restart
-updating platform tools folder
-adding 127.0.0.1 as exception to be allowed
Still nothing seems to work out. Kindly help!!!
Thanks in advance
The platform tools now depend on the Windows Universal C Runtime, which is usually installed by default via Windows Update. This is required from 28.0.2 (March 2019).
So if you are on an older version of windows or unable to update your windows, you must use an older version of platform-tools.
How to install the older version of platform tools?
1. Delete all files from your your-sdk-location\platform-tools
2. Download platform tools version 28.0.1 from here. Extract and copy all those files to your-sdk-location\platform-tools
I think you miss a .dll file, this file api-ms-win-crt-locale-l1-1-0.dll from your Windows 32-Bit system, just download that file according to your system and Copy/Paste the file to C:\Windows\System32
You can download it from here:
https://www.sts-tutorial.com/sites/downloadCenter.php?api-ms-win-crt-locale-l1-1-0
Try below command before adb start
adb kill-server
adb start-server
Download fresh adb files
File names in the zip files will be:
adb.exe
AdbWinApi.dll
AdbWinUsbApi.dll
fastboot.exe
Go to C:\Users\YOUR_USER_NAME\AppData\Local\Android\Sdk\platform-tools and paste these four files. (replace the old one).
It will work fine
Download here
https://androidstudio.io/downloads/tools/download-the-latest-version-of-adb.exe.html
For my case, Downloading latest SDK platform tools and extracting it into platform-tools of your SDK location
You can know your SDK path from Android studio >> Tools >> SDK Manager >> Android SDK Location
The missing dll file is located in the Java installation folder. Add it as a system PATH variable and reboot.
Example location C:\Program Files (x86)\Java\jdk1.8.0_202\jre\bin
Updating the Windows Universal C Runtime fixed it for me.
Get the update from microsoft
I tried to reinstall Android Studio on Ubuntu and seems not to get to download the Sdk this time.
Go to Android Studio download page and go to Get just the command line tools section and download the SDK tools for Linux
Then after download is done, launch the SDK manger and install the needed packages.
Then finally, Open Android studio and change the SDK path to your new path, see attached screenshot for this step
I have download Android Studio packed with the full SDK (build-tools, platforms, everything). Installed the studio (64-bit) on Drive C and the SDK in "AppData/local/Android/android-sdk" folder as specified by the installer itself.
Now when I run the Studio (with admin permissions) it still attempts to download everything, as if no SDK components were present on my PC.
Is there a way to tell the Studio where the SDK is? Or I have to re-download it all?? (I already have everything mentioned in the error message)
"The following SDK components were not installed: platform-tools, extra-android-m2repository, tools, addon-google_apis-google-21, build-tools-21.1.2, android-21, sys-img-x86-addon-google_apis-google-21, source-21,"
[The following SDK component was not installed: platform-tools]
I ran into the same issue and was able to solve it by updating the SDK from the command line.
Go to the location where your Android SDK was installed (possibly ~/Android/Sdk) and run:
./android update sdk --no-ui
There's no need to run it as root.
Then, on Android Studio, go on Configure -> Project Defaults -> Project Structure, and then point Android SDK Location to wherever it is located.
step1: just copy 21.1.2 folder and paste with name 21.1.1
step2 : open 21.1.1 folder and open "source properties" file with any text editor( notepad)
step3 : change pkg.Revision=21.1.1 save it
step 4: android studio
sudo chown -R <username> .android
as mentioned here, android sdk updater stores a copy of some xmls in .android/cache
So after you have set the permissions, the updater can store necessary xmls and download missing sdk components
I am running Windows Vista and have an error in my Android application which is presented by Eclipse as:
The container 'Android Dependencies' references non existing library 'C:\Program Files\Android\android-sdk\tools\support\annotations.jar'
CornBoyzTutorial Build Path Problem. I go to the 'C:\Program Files\Android\android-sdk\tools` folder to see that there is no support folder. The beginning of Eclipse presented me with This version of ADT requires Android SDK Tools 17 or above. Current revision is 16. Please update your DDK Tools to the latest version.
I have run Eclipse as Administrator and go to the Android SDK manager, to see that there is an update for the Rev.16 Android SDK Tools to Rev 19. I press for the installation of the packages and get the window message that the SDK Manager:failed to install, a folder failed to be moved, On Windows this typically means that a program is using that folder.. (eg anti-virus), ..close any running programs taht may be accessing the directory C:\Program Files\Android\android-sdk\tools`, When ready ... try again.
The console message is:
[2012-05-06 13:35:20 - SDK Manager] Failed to rename directory C:\Program Files\Android\android-sdk\tools to C:\Program Files\Android\android-sdk\temp\ToolPackage.old01.
The Android SDK Manager Log message at the end is:
Done loading packages.
Preparing to install archives
Downloading Android SDK Tools, revision 19
Installing Android SDK Tools, revision 19
Failed to rename directory C:\Program Files\Android\android-sdk\tools to C:\Program Files\Android\android-sdk\temp\ToolPackage.old01.
Done. Nothing was installed.
I have all anti-virus software turned off and no programs accessing this directory. I also ran the SDK manager from the Android folder directly as Administrator with the same error. I have also tried restarting Windows. Previous times when I update never showed this problem.
the Android SDK manager (it's an application you can run by itself, Eclipse is only framing it) is itself located in the tools directory (clarification: I looked on the linux version, but would guess it's the same on windows).
You could try to copy it elsewhere and run that, or manually download and unzip the tools package, but it might be simplest to just re-install the latest SDK from scratch.
I have downloaded and unzipped the file android-sdk_r15-windows.zip from the
URL http://developer.android.com/sdk/index.html, however the install instructions
I have installed the SDK and the ADT plugin for eclipse as described with no hitches, however when I go to create a new AVD using the AVD Manager.exe that came with the install archive there are no targets. This seems to be because i haven't installed any platforms into my system. This is where the question comes. All the install instructions and tutorials refer to executables, 1) SDK setup.exe and 2) Android SDK and AVD Manager, neither of these applications came with the install zip described above. There are however 2 files SDK Manager.exe and AVD Manager.exe. So without the tools described ongline it seems impossible to install the platforms into the SDK, does anyone know where these tools went or how to install platforms into my system using the SDK Manager or AVD Manager
[Edit]
Here is an image of what I am describing,
In the root of the sdk zip file, there is an SDK Manager executable. If you run that, you can use it to select which platforms you want to download and install. Don't forget to install the platform-tools package as well.
The image below shows the available package screen within the manager:
I was also facing the same problem.
I have followed following steps.
Uninstall above installation from Eclips
Follow steps as described into the link: http://sochinda.wordpress.com/2011/04/28/step-by-step-guide-on-how-to-install-android-sdk-offline-not-completely-offline/#comment-428