Reputation: 141
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.
Upvotes: 14
Views: 10470
Reputation: 21
If you are facing this issue due to arm64 incompatibility, you can try doing exactly what I did.
buildscript {
ext {
buildToolsVersion = "33.0.1"
}
}
buildscript {
subprojects { subproject ->
afterEvaluate{ if((subproject.plugins.hasPlugin("android") || subproject.plugins.hasPlugin("android-library"))) {
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
}
}
}
}
}
The binaries I symlinked in my case are,
Build Tools
aapt aapt2 aidl apksigner zipalign split-select dexdump
Platform Tools
fastboot adb dmtracedump e2fsdroid etc1tool hprof-conv make_f2fs make_f2fs_casefold mke2fs sload_f2fs sqlite3
Most of them won't be used though, but just to be safe.
android.aapt2FromMavenOverride=/path-to-downloaded-aapt2-binary
Good luck
Upvotes: 1
Reputation: 1
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.
Upvotes: 0
Reputation: 347
(Assumption: CMD Line Tools are installed)
SDK manager package "emulator" is missing on ARM
Workaround:
Download emulator from Google for Linux: https://developer.android.com/studio/emulator_archive
Extract it to $ANDROID_SDK_HOME/emulator
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>...
Upvotes: 2