3

I've been trying to install sdkmanager "build-tools;30.0.2" on an arm64 processor (ampere CPU).

But every time I get this:

Warning: Dependant package with key emulator not found!                         
Warning: Unable to compute a complete list of dependencies.

I'm trying to build an app and I get this error:

Failed to install the following SDK components:
      build-tools;30.0.2 Android SDK Build-Tools 30.0.2

Edit: I think the problem is the package emulator isn't available. I tried downloading it from here but sdkmanager didn't recognize it.

index9090
  • 31
  • 2
  • did you check this link https://stackoverflow.com/questions/42732684/error-dependent-package-with-key-emulator-not-found-while-updating-android-sdk – Yodgorbek Komilov Mar 20 '22 at 08:43
  • Yes, But I'm not using the studio, Also, `./sdkmanager --channel=3 emulator` didn't work – index9090 Mar 20 '22 at 08:44
  • have you installed necessary api level using sdk manager ? – Yodgorbek Komilov Mar 20 '22 at 08:53
  • Yeah, I already installed `platform-tools` & `platforms;android-29` but I can't install the build-tools – index9090 Mar 20 '22 at 08:55
  • 1
    The problem is, I think, the emulator package isn't available for arm64. When I try `sdkmanager --list` and look for emulator, I can't find it. – index9090 Mar 20 '22 at 09:20
  • @index9090 yes, I see the same thing. I would like some confirmation on it. Android command line tools for linux seem to only be available for amd64. However, having said that I was able to install some other packages using sdkmanager. – ykonda Apr 25 '22 at 03:03

2 Answers2

0

(Assumption: CMD Line Tools are installed)

SDK manager package "emulator" is missing on ARM

Workaround:

  1. Download emulator from Google for Linux: https://developer.android.com/studio/emulator_archive

  2. Extract it to $ANDROID_SDK_HOME/emulator

  3. You need a license file called "package.xml" which is automatically created when you download it via Android Studio UI SDK Manager, you copy that file to $ANDROID_SDK_HOME/emulator and change all version numbers related to the version you have downloaded:

    ... <revision><major>31</major><minor>1</minor><micro>4</micro></revision>...
    
true-mt
  • 317
  • 3
  • 10
0

I was able to install build-tools using sdkmanager on arm64 by copying to the sdk dir emulator from https://chromium.googlesource.com/android_tools/+/refs/heads/main/sdk/emulator/

Unfortunately the installed packages seem to be not compiled for arm64 and are not working.