How to solve this error when I open flipper?

6.7k Views Asked by At

Failed to start flipper-server Error: Failed to initialize ADB. Please disable Android support in settings, or configure a correct path. Error: spawn /opt/android_sdk/platform-tools/adb ENOENT

2

There are 2 best solutions below

0
rangfu On

The error message is complaining that it can't find the Android SDK installed. The Android SDK comes with Android Studio, which you can download here:

https://developer.android.com/studio

Once installed, open your Flipper settings (click the cog icon in the bottom left) and ensure that the "Android SDK location" field is correctly filled it. For me (on Mac), the path is "/Users/rangfu/Library/Android/sdk".

If you're not planning to debug Android with Flipper, you can simply switch off the "Android Developer" setting.

0
cglacet On

As it has been said, you probably need to change your SDK location.

First you need to find where your sdk is, in a terminal:

dirname $(dirname $(which android))
# outputs something like /Users/yourname/Library/Android/sdk

Then you can go to Flipper's settings:

settings icon

And set Android SDK location to the path you just got:

sdk settings screen