简体   繁体   中英

Android Emulator unable to connect to Flipper

I followed the instructions here https://fbflipper.com/docs/getting-started/android-native/#diagnostics . I added the 3 dependencies in build.gradle , and added the application class with the same implementation as in the guide, and linked to it in manifest. However flipper still says "No device found":

在此处输入图像描述

I ran the diagnostics command adb shell am start -n <package_name>/com.facebook.flipper.android.diagnostics.FlipperDiagnosticActivity and saw that "establish pre-setup connection" and "connect insecurely" failed:

在此处输入图像描述

I'm not sure what these errors mean and how to fix them. Would appreciate help!

I had the same issue and this worked on my side:

In the flipper application:

  • Open the Settings from the bottom left gear wheel, then "Settings"
  • Change the "Android SDK location" value to the path to the platform tools, something like this: /Users/yourusername/Library/Android/sdk/platform-tools

脚蹼配置

  • Click on "Apply and restart".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM