Intellij 2020.3 Apple Silicon install Android SDK failure

Viewed 1448

I'm trying to install the Android SDK using the Intellij Community edition (2020.3) on my mac running Apple Silicon. I have downloaded the newly released Intellij for ARM and is trying to install the SDK using the Intellij SDK setup (launched when creating a new Android project).

However, when trying to install the SDK I get the following error message (see screenshot):

An error occurred while trying to compute required packages.

In the terminal I see two exceptions:

2021-01-06 09:52:35,395 [ 562239]   WARN - util.EmbeddedDistributionPaths - Failed to find a valid embedded JDK
java.lang.Error: Incomplete or corrupted installation - "/Applications/prebuilts/studio/jdk/jdk11/mac/Contents/Home" directory does not exist

followed by

2021-01-06 09:53:07,896 [ 594740]   WARN - precated.InstallComponentsPath - Dependant package with key emulator not found!
com.android.tools.idea.sdk.wizard.SdkQuickfixUtils$PackageResolutionException: Dependant package with key emulator not found!

If I try to install the Android SDK manually, I simply get the second error message as well when I try to install the build-tools: Dependant package with key emulator not found!.

I know that the emulator does not exist for Apple Silicon, but I should still be able to install the build-tools and debug using a physical device, right?

2 Answers

IntelliJ IDEA Ultimate

It happens in IntelliJ IDEA Ultimate too. I have installed the Android SDK with Android Studio; but, IntelliJ is not able to launch android applications in physical devices.

I suppose Android support in current version of IntelliJ IDEA Community does not yet have any Apple Silicon support.

Here is an Android Studio article about the initial support for Emulator for Apple Silicon: Android Emulator Apple Silicon Preview. The article contains the link to an image and instructions to install.

Related