5 April 2024 Leave a comment Tech-Help
Encountering issues while installing Android SDK Platform Tools is a common problem that can interrupt your development workflow. This guide provides a step-by-step solution to overcome the installation errors and get you back to building your Android applications.
Understanding the Error
During the installation of Android SDK Platform Tools, you may encounter an error similar to the following:
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.
This error indicates a failure to download the correct files due to connection issues or an incorrect checksum validation.
Manual Installation of Android SDK Platform Tools
If automatic installation through the SDK Manager is not working, you can manually install the SDK Platform Tools by following these steps:
- Download the appropriate zip file for your operating system from the official Android developer site’s Platform Tools page.
- Extract the downloaded zip file to a known location on your computer.
- Move the extracted “platform-tools” folder to your Android SDK directory. For example, if your Android directory is at
C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.27659.1188
, the new directory should be:
C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.27659.1188\platform-tools
. - After moving the platform-tools folder, re-run the SDK Manager to ensure the tools are recognized and the error is resolved.
This manual process bypasses the download and checksum verification steps that are causing the error, allowing you to continue with your development activities.
Conclusion
Installation issues with Android SDK Platform Tools can be frustrating, but manually downloading and installing the necessary files is a reliable workaround. Always ensure that you are downloading from the official Android developer site to maintain the integrity and security of your development environment. Once the platform-tools are correctly installed, you can proceed with your Android application development without further interruptions.