Hi i'm really struggling to get the Android emulator running on my Mac. What are the steps I need to take to get this working?
I've got Visual Studio 2019 on MacOS Catalina
This is on a new blank Xamarin Forms project
I've tried to go Tools > Device Manager > New Device.
Pixel 3 XL , x86_64, Q 10.
I keep getting this message:
Android emulator component is incomplete therefore the device Pixel 3 XL Q 10.0 - API 29 could not be created. Do you want us to reinstall the Android Emulator?
I've clicked the button to reinstall the android emulator but it doesnt work.
Also tried with OS 8.1 and setting processor as x86 - all the combinations give a similar error messages
When i go to Tools > SDK Manager, the following are ticked:
Android 10.0 - Q
Android SDK Platform 29
Intel x86 Atom_64 System Image
Google APIs Intel x86 Atom_64 System Image
Google APIs Intel x86 Atom System Image
Similar for 9.0, 8.1, 7.1, 7.0, 6.0
Version details
- Version is 8.6.2 (build 6)
Android SDK Manager
Version: 16.6.0.50
Hash: 5901879
Branch: remotes/origin/d16-6
Build date: 2020-04-30 04:01:22 UTC
Android Device Manager
Version: 16.6.0.95
Hash: 45d17b5
Branch: remotes/origin/d16-6
Build date: 2020-04-30 04:01:42 UTC
Xamarin.Android
Version: 10.3.1.4 (Visual Studio Community)
Commit: xamarin-android/d16-6/3a10de9
Android SDK: /Users/user/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
6.0 (API level 23)
7.1 (API level 25)
8.0 (API level 26)
8.1 (API level 27)
I ended up downloading Android Studio, then running the installers from there and then finally went back to VS Mac and installed an emulator device - that seemed to work.
I am able to solve the issue by creating an XML file named entitlements.xml with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.hypervisor</key>
<true/>
</dict>
</plist>
Then run the following command
codesign -s - --entitlements entitlements.xml --force /Users/macbookpro/Library/Developer/Xamarin/android-sdk-macosx/emulator/qemu/darwin-x86_64/qemu-system-x86_64
to identify your Android SDK installed folder use Visual Studio> Tools > SDK Manager then check the Android SDK path
Related
I tried everything and I am running out of ideas to have an Android simulator working on my mac.
I downloaded —again— Android studio from the official website https://developer.android.com/studio/index.html
Android Studio Bumblebee | 2021.1.1 Patch 3
Build #AI-211.7628.21.2111.8309675, built on March 16, 2022
I downloaded "the R API Level 30 image"
I installed "The Zulu OpenJDK" with
brew tap homebrew/cask-versions
brew install --cask zulu11
I know the android-emulator-m1-preview is not required anymore
Edit:
Following #mmBs advice, I changed the path to Gradle
Preferences > Build > Gradle > Gradle JDK > azul-11
...same result.
I can't make the virtual device works on my machine.
I always have this device manager error when I try to launch the simulator.
Question:
How can I have an android simulator working with an Apple M1?
What works for me:
Install Android Studio from the official webpage for M1 processors and then install Android SDK in default location ~/Library/Android/sdk.
Install java using brew - brew install openjdk#11 (android supports java 11, no needs for installing java 17 etc.) and then add it to the path.
Set your android paths in zsh or bash:
# Path to Android SDK
export ANDROID_HOME=/Users/$USER/Library/Android/sdk
export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/ndk-bundle:$PATH"
Install the emulator image for arm --> arm64-v8a (from Android Studio's Device Manager).
Done - it should be working. I use M1 processor and the emulator works just fine. You don't need any m1-emulator-preview from github.
Edit: you can check this thread as well: Android Studio/Emulator on macOS with ARM CPU M1
this worked for me!!!
Preferences->Appearance&Behavior->Android SDK->SDK Tools
Check these..see pics
I am new in the Xamarin.Forms world and the mobile development and I am trying to understand how the framework mvvmcross works. To do it I have taken the example app TipCalc. I am getting a problem when I start this app on a virtual emulator with Visual Studio 2017. I am getting the following error: "TipCalc.Forms has stopped".
Emulator configuration:
Android_Accelerated_x86_Oreo (Android 8.1 - API 27) 1GB
I have following components installed:
Android SDK Platform 27 and Google Play/APIs Intel x86 Atom System Image are installed.
Android SDK Tools 26.1.1 and Android Emulator are also installed. NDK is not installed. I am getting an error without any detail when I try to install it.
My development environment:
Windows 10 Home
Processor: Intel Core i7-7500U - RAM 8 GB 64Bit-OS
Any idea why it doesn't work? Build and deploy works fine (deployment takes a long).
I'm trying to install the Android SDK Tools on my Mac so that I can export projects from Unity 3D to an Oculus Go. I have version 25.2.5 installed successfully and now I'm trying to install the necessary packages. Executing android by double clicking on it pulls up a GUI that suggests a series of packages to be installed.
I was able to install
Android SDK Tools (rev 25.2.5)
Android SDK Platform-tools (rev 28)
Android SDK Build-tools (rev 28)
and all of Android 9 (API 28)
Unfortunately it also suggests install of
API 28, P preview
which contains:
Wear OS Intel x86 Atom System Image
When I attempt to install this last component I get an error message:
Package 'Wear OS x86 Atom System Image, Android API P, revision 2' depends on 'Missing SDK Platform Android Preview, API 28'. It seems weird that a suggested component would have a dependency on something that isn't present.
Anyone have any suggestions on how to fix this? Is it possible that I will have a functional toolchain without installing the API 28, P preview package?
I am using visual studio to develop cordova apps, they seem to run perfectly on ripple emulator but when I select GOOGLE ANDROID EMULATOR then it gives the error as
THIS AVD's CONFIGURATION IS MISSING A KERNEL FILE
and when I use VS EMULATOR 5'' KITKAT(4.4) XXHDPI PHONE then it gives the error as YOU DO NOT HAVE PERMISSION TO MODIFY HYPER-V NETWORK ADAPTER SETTINGS
Can anyone please help?
It seems like you have an incomplete install of the Google Android Emulator and have to install one yourself.
Download Android Studio, open the SDK manager, and install the following components:
latest "Android SDK tools"
latest "Android SDK platform-tools"
latest "Android SDK build-tools"
Android 6.0 API 23 - SDK platform -- to build the latest kind of Android app
Android 5.0.1 API 21 - SDK platform -- to use the emulator successfully
Android 5.0.1 API 21 - ARM EaBI v7a System Image -- the emulator image which you can use on a machine with Hyper V activated
Then, open the AVD manager and create an emulator with the ARM system image.
Finally, go to tools->options->"Tools for Apache Cordova" -> Environmental variable overrides, and link to where your customized Android Studio is installed.
All,
Android Studio, in the layout rendering pane on the right, I get the error message:
"No Android SDK found. Please configure an Android SDK."
Also, next to the Android icon at the top it says "".
I have tried running with "Administrator" permissions.
I have checked the SDK setting to be correct:
File -> Project Structure -> SDK Location.
I have checked that I have the SDK installed and the path configured in the project structure.
The project builds with no errors or warnings.
This project runs correctly on my Windows 7 machine. I moved the project over to a new Windows 10 machine and am now having these problems.
Does anyone know how to fix this problem?
I have a serious headache from banging my head against the wall.
My configuration:
Android Studio 1.5.1
Windows 10.
I downloaded the AS package, IDE and SDK together.
The project uses the Motorola Symbol EMDK library which requires the Android 4.4.2 (API 19) SDK.
Under "Project Structure" there is:
"Compile SDK Version": "EMDK 4.0 (API 19) (Symbol Technologies LLC) (API 19).
"Build Tools Version": "23.0.2"
From the SDK manager, I have verified that the following are installed:
Android SDK Tools 24.4.1
Android SDK Platform-tools 23.1
Android SDK Build-tools 23.0.2
Android SDK Build-tools 23.0.1
Android 6.0 (API 23) SDK Platform
Android 6.0 (API 23) Google APIs
Android 6.0 (API 23) Google APIs Intel x86 Atom System Image
Android 4.4.2 (API 19) SDK Platform
Android 4.4.2 (API 19) EMDK 4.0 (API 19)
Android 4.4.2 (API 16) SDK Platform
Android 4.4.2 (API 16) EMDK 4.0 (API 16)
Android Support Repository 25
Android Support Library 23.1.1
Google Repository 24
Google USB Driver 11
Intel HAXM 6.0.1
The problem seems to be with the Android bundle. Installing the SDK and IDE separately solved the issue.
Uninstall Android Studio Bundle.
Download the SDK and install.
Download the IDE and install.
Copy the EMDK add-ons manually to the SDK add-ons folder.
All seems to work now.
I had a similar issue (platform emdk api 19 not found), I have it resolved by following a "manual" refresh of the emdk plugin, here's what I did:
Go to "project structure" then Modules then app then "Properties", change the "compile sdk version" from "emdk 19" to "api 19 android", compile, then change it back to "emdk 19". Then compile again. This time finally the IDE is able to find "emdk 19".