Intellij 2020.3 Apple Silicon install Android SDK failure - android

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?

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

Can't install vsix to Visual Studio 2019 - Android Device Manager has a lower version than required by Visual Studio

I have Visual Studio 2019 installed with Xamarin. I'm trying to get Shell to show up in the project templates. I'm following this post as a guide. But when I install the vsix file, it fails with the error message: Installation of Microsoft.VisualStudio.Android.DeviceManager failed. The extension has a lower version than required by Visual Studio. Please install the extension from Visual Studio Installer instead.
Where in the Visual Studio Installer is the Android Device Manager? I've installed all the Mobile Development tools and all updates....
That post is obsolete - it describes something you needed to do in a Preview version of VS 2019.
In VS Installer, select Workload "Mobile development with .NET".
I was unable to find any Microsoft doc that tells you to simply do that!
I don't recall whether you still need to also do this step:
Setting up the Android SDK for Xamarin.Android.
After installing the Workload mentioned above, restart VS. See if the menu item mentioned below is there. If so, try to make a sample app - maybe this "Android SDK" step is no longer needed - the Workload might set everything up.
Then Android Device Manager will be at menu Tools / Android / Android Device Manager.
Menu location documented here.

Cannot install Android Studio on Chrome OS: Error while installing package: package architecture (amd64) does not match system (arm64)

I cant seem to install Android Studio on my Chromebook and I cant find a compatible package on the website. Any way to get it working on this specific Chromebook? (Acer Chromebook Spin 513)
About Chrome OS:
Google Chrome 90.0.4430.218 (Official Build) (32-bit)
Revision 3d6fce300d32b4652aed6bfe358eba932e094ee5-refs/branch-heads/4430#{#1466}
Platform 13816.82.0 (Official Build) stable-channel trogdor
Firmware Version Google_Lazor.13577.102.0
Just install the .DEB file. You also need to make sure you have 3-4 gb enabled for linux. I had the same problem, and it turns out I was not allocating enough storage to actually install android studio.
First, add the Linux terminal. Then install snap or flatpak in the terminal. Then, use snap or flatpak to install Android Studio without errors. Snap and flatpak will find which architecture your computer is and will install the Android Studio designed for the architecture
Snap : https://snapcraft.io/android-studio
Flatpak : https://flathub.org/apps/details/com.google.AndroidStudio

Why am I getting: "No system images installed for this target"

I'm having trouble with the Android emulator.
I am running on Windows 10, and here is my environment:
Microsoft Visual Studio Professional 2017
Version 15.5.6
VisualStudio.15.Release/15.5.6+27130.2027
Microsoft .NET Framework
Version 4.7.02556
Xamarin 4.8.0.760 (fc93f3f5b)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 4.8.188 (c5813fa34)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin.Android SDK 8.1.5.0 (HEAD/75f8c6838)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 11.6.1.4 (db807ec)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
My Android SDK Platform looks like:
and the SDK Tools is:
In my emulator screen, no matter what device I choose, I get the error:
"No system images installed for this target".
I clearly have installed the Google ARM System Images.
I don't understand why I'm getting the error message.
Any help will be greatly appreciated.
Charles
Update 2
I would like to thank York Shen, and Jon Douglas for their help. The Device Emulator now works... well almost.
I installed the Intel HAXM Emulator Accelerator. My console script was:
I also selected the Accelerator from the SDK Tools:
When I try to define a new device using the Emulator Manager, I now get:
Obviously, I still have a problem with HAXM. By the way, if you tell me I have to change my computer's BIOS to make HAXM work, I will give up on Android.
I tried to run a default emulator, and it warned me that I could continue, but without any acceleration. A simulator appeared but my application did not run. My application only runs on iOS and UWP.
I'm going on five days in trying to get the Android Emulators to work. No cigar. I contrast this to my experience with the iOS Emulator. That one took me about 1/2 an hour to get running. It was very clean and simple. I'm thinking seriously about abandoning all software development for Android.
Why am I getting: “No system images installed for this target”
As #Jon Douglas said, you are using a deprecated version of the AVD Manager, you could refer to the docuemnt:
As of Android SDK Tools version 26.0.1, Google has removed support for their UI-based AVD and SDK managers in favor of their new CLI (Command Line Interface) tools.
You could refer to my answer for a more detailed answer about how to solve this issue:
Xamarin with Visual Studio not detecting CPU/ABI system image for emulator, even though system images are installed
Update:
If you use the Xamarin SDK Manager and Xamarin Android Device Manager, you need update to Android SDK Tools 26.0.1 and later (which is required for Android 8.0 Oreo development).
You could read this: Requirements. In your situation, upgrade your Android SDK Tools version to 26.1.1:
Update 2:
You need Installing the Xamarin Android Device Manager, then you could start the Device Manager by clicking Tools > Android Emulator Manager:
To help anyone scratching their heads as to why when they install a new version of Visual Studio 2017 the emulator looks different to York Shen above, its because Visual Studio didn't bundle the latest version of the AVD Manager into Visual Studio 15.6.6 (as of 23rd April)
I followed #York Shen - MSFT's answer until I hit a snag on the update of the Android SDK tools. I simply downloaded them from https://developer.android.com/studio/#downloads (Command line tools only, sdk-tools-windows-4333796.zip).
Copy the contents of the tools folder into C:\Program Files (x86)\Android\android-sdk\tools

Visual Studio 2017 - SDK and AVD wont open

So i have installed Visual Studio 2017 Community version for my windows 7 laptop. The installation completed with an error log that said that it had failed to download the Android Emulator for it.
Now, when i try to click on The AVD Manager or the SDK - both do nothing at all (no feedback too).
When i try to do a repair or modify - VS will tell "Setup Operation Failed".
I have search online for the Android Emulator only package - but all found were compatible with windows 8 or more.
I have looked online, and some people still have this problem - but no solution.
I would appreciate any help.
Thanks!
Error log bit:
The product failed to install the listed workloads and components due to one or more package failures.
Incomplete workloads
Mobile development with .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.26403.0)
Incomplete components
Android NDK (R13B) (Component.Android.NDK.R13B,version=13.1.6)
Android SDK setup (API level 23) (Component.Android.SDK23,version=15.0.26208.0)
Google Android Emulator (API Level 23) (Component.Google.Android.Emulator.API23.V2,version=15.0.26208.0)
Intel Hardware Accelerated Execution Manager (HAXM) (Component.HAXM,version=15.0.26208.0)
Google recently released Android SDK Tools 26.0.1(March 2017) that comes with the Android Studio 2.3.1(April 2017) update. This version of Android SDK Tools deprecates the android program in the tools folder.
Because of this deprecation, the SDK Manager and AVD Manager stand-alone programs will no longer work when invoking them from the respective IDE menus. Rather Google has recommended that users now use the CLI tooling.
LINK

Installing ANDROID sdk on a MAC OS X

I've been facing issues with my installation of Android sdk on my MAC.
As instructed on the google website I've followed their instructions to install
ADT Plugin
Android SDK
Eclipse platform
The installation is not on this order but as directed by the website. After installation I followed the instructions to create a .bash_profile(it was not present on my computer) and I updated it with the directory settings. Now I've installed it and set the path folder on Eclipse using the preferences->android. When I click apply and I exit I get an error stating that Android component is missing. Also to note that the android sdk->platform is supposed to contain an adb is empty.
I used this question's solution and yet I get the same error
Thank you for your input
UPDATE: It asks me to use the SDK manager to install I am unable to locate this component
It sounds like you haven't installed any actual Android SDK platforms.
Go to the tools directory of the Android SDK and run android. The Android SDK manager GUI will appear allowing you to install an android platform. Click on available packages, expand Android repository, and install the platform versions you want.

Categories

Resources