Scroll Top

PANIC: Broken AVD system path – Android Emulator setup on Mac/Homebrew

panic-broken-avd-path-android-mac

Yesterday, I downloaded the latest version of Android Studio to compile an Android App and run in an emulator. Little did I knew that it would turn into a 2-3 hour effort. In this blog, I would like to highlight one of the main issue (panic: broken avd system path error) that took lot of time and research. Hopefully, it will save some time for others.

ERROR:

After creating the AVD, when I tried to launch it, it gave me this error:

PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value[/Users/username/Library/Android/sdk]

ENVIRONMENT:

My environment variables were set as:

export ANDROID_HOME=/Users/username/Library/Android/sdk

export ANDROID_SDK_ROOT=/Users/username/Library/Android/sdk

export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home

SOLUTION: LINK

On Mac: I had installed android-sdk using brew as well as Android Studio. Somehow, having 2 installations was causing this problem. When I uninstalled my brew installation of the sdk using brew cask uninstall android-sdk

That was the exact problem I was encountering. Removing the brew version of android-sdk solved the problem.

brew cask uninstall android-sdk

Checkout our recent blog on installing WordPress on EKS – LINK

Related Posts

Leave a comment