Xamarin Android Emulator: Please define ANDROID_SDK_ROOT

Step:
Create Android emulator

AVD Android Target:
android-22

Custom Hardware Profile Content:
Added config option: hw.gpu.enabled=no
(any other option causes the same error)

Perform Build causes error:

Starting emulator
/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/tools/emulator -avd Generic -skin 768x1280 -no-boot-anim -no-audio
PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT

(Even if creating an app environment variable ANDROID_SDK_ROOT: /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx gives the error : Path is broken)

Any idea what this could be?
Thanks a lot!!!

Hi, which bitrise stack are you using? You can check it on your bitrise app’s settings page (at the bottom).

1 Like

Hello,
Xamarin Stable with XCode 8.2, on macOS 10.12 (Sierra)

Hey @tudorlazarean! :wave:t2:

Could you please share the build log? If it contains any sensitive detail please send in using the onsite-chat on bitrise.io! Thanks! :blush:

1 Like

Hey Tudor,
have u found any solution?

Hi @vbarzdyka,

Fill out a #issues:build-issues report (at http://discuss.bitrise.io/c/issues/build-issues ) and we’ll check it ASAP! :slight_smile: