flipper: Flipper Doctor complains Android SDK is not installed
š Bug Report
Iāve been using Flipper since before the name change and itās always worked fine (still does).
However, on each launch, I get an error banner claiming there are problems with my install.

My Android SDK is configured correctly, and complete.


To Reproduce
Launch Flipper, or start Doctor.
Expected Behavior
Doctor should not claim there is an error with my setup. Of if there really are, it should describe the issue in a way that makes it actionable.
Environment
- MacOS High Sierra 10.13.6
- Flipper 0.29.4
adb --version
Android Debug Bridge version 1.0.41
Version 29.0.5-5949299
Installed as /Applications/Dev/android-sdk/platform-tools/adb
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 33 (17 by maintainers)
I fixed the error by going to my
local.propertiesfile in VS Code coping thesdk.dirwhich mine is/Users/[MYUSER]/Library/Android/sdkthen I went in Filpper -> File -> Preferences and changed the Android SDK Location See imageā¦Then I clicked the
Apply and RestartButtonin your terminal type
echo $ANDROID_HOMEthat will give you the path to the Android SDK.Copy that path and paste it in Flipper -> File -> Preferences -> Android SDK Location.
Apply and restart and you should be done.
@nikoant Iām facing the same issue, flipper is weirdly saying that
android_homeis/opt/android_sdkand doesnāt exit ⦠which it is not true at alleverything regarding android is working fine for me, Iām not sure what the issue is here, could u please let me know what u think of this ?
thanks.
I have this issue as well despite correct env info and my JAVA_HOME set to jdk 8
Env info is
It would be tremendously helpful if the doctor displayed some explanation as to why it believes itās failed. The current screen gives no actionable information to the developer.
Thank you for pointing me in the right direction! As you surmised, the tool didnāt detect my Android SDK in with either command.
After looking at the source for
envinfo, I realized the root cause was this issue.The short-term fix for me is downgrading the version of Java I use by default, until Google finally updates their build tools for a current version of Java.
In your terminal, run
echo $ANDROID_HOME, copy the path over to Flipper settingsOn Mac OS I put
~/Library/Android/sdkinto flippers settings first, turns out, flipper wants an absolute path like/Users/<username>/Library/Android/sdkFor new Flipper (Mac version). Its under cog icon > settings
This solution works for me. Thanks!
@a-eid on Mac, console apps and gui apps do not necessarily share the same environment. Try exporting your console env:
Ok Iām not sure I understand. The README says it requires yarn 1.5+, yet that doesnāt exist according to yarnās website
This remains broken in 0.30.2
Interesting, thanks for reporting.
What do you get if you run this from the command line?
npx envinfoand also this:
ANDROID_HOME=/Applications/Dev/android-sdk npx envinfo