unstoppable
unstoppable

Reputation: 31

Failed to install android SDK tools 26.1.1 and Emulator

Can't download and install android SDK tools 26.1.1 and emulator.

This is the log output :

To install:
- Android Emulator (emulator)
- Android SDK Tools (tools)
Preparing "Install Android Emulator (revision: 26.1.4)".
Downloading https://dl.google.com/android/repository/emulator-windows-4266726.zip
An error occurred while preparing SDK package Android Emulator: Cannot download 'https://dl.google.com/android/repository/emulator-windows-4266726.zip': C:\Users\hp\AppData\Local\Temp\PackageOperation07\emulator-windows-4266726.zip (The system cannot find the path specified)
, response: 200 OK.
"Install Android Emulator (revision: 26.1.4)" failed.
Preparing "Install Android SDK Tools (revision: 26.1.1)".
Downloading https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip
An error occurred while preparing SDK package Android SDK Tools: Cannot download 'https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip': C:\Users\hp\AppData\Local\Temp\PackageOperation02\android\repository\sdk-tools-windows-4333796.zip (The system cannot find the path specified)
, response: 200 OK
"Install Android SDK Tools (revision: 26.1.1)" failed.
Preparing "Install Android SDK Tools (revision: 26.1.1)".
Downloading https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip
An error occurred while preparing SDK package Android SDK Tools: Cannot download 'https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip': C:\Users\hp\AppData\Local\Temp\PackageOperation02\sdk-tools-windows-4333796.zip (The system cannot find the path specified)
, response: 200 OK.
"Install Android SDK Tools (revision: 26.1.1)" failed.
Failed packages:
- Android Emulator (emulator)
- Android SDK Tools (tools)

Upvotes: 3

Views: 16981

Answers (6)

omars
omars

Reputation: 8694

What worked for me is to use AVD manager to download & install the platform tools (my avd uses android 31):

sdkmanager "platforms;android-31"

to find out a list of available options run

sdkmanager --list

Upvotes: 0

Anuj
Anuj

Reputation: 23

try this

flutter config --android-sdk <path-to-your-android-sdk-path>

  • Make sure it has the following structure

<sdk folder>/cmdline-tools/latest/

|- bin

|- lib

|- ...

Upvotes: 0

Md Aman Ullah
Md Aman Ullah

Reputation: 506

Worked for me ..

  1. Installed java
  2. Run Android Studio as Administrator

Upvotes: 2

Alexander Shutau
Alexander Shutau

Reputation: 2800

Worked for me on Mac after changing the destination folder from /Users/.../Library/... to /Users/.../My Folder

Upvotes: 0

Firoz Memon
Firoz Memon

Reputation: 4650

After Running Android Studio as Administrator solved my issue.

I am successfully able to download sdk now.

Upvotes: 1

Bui Cuong
Bui Cuong

Reputation: 23

Check your connection because it can't download package to install

Upvotes: 0

Related Questions