简体   繁体   English

Android 模拟器无法连接到 Flipper

[英]Android Emulator unable to connect to Flipper

I followed the instructions here https://fbflipper.com/docs/getting-started/android-native/#diagnostics .我按照这里的说明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.我在build.gradle中添加了 3 个依赖项,并添加了与指南中具有相同实现的应用程序类,并在清单中链接到它。 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:我运行了诊断命令adb shell am start -n <package_name>/com.facebook.flipper.android.diagnostics.FlipperDiagnosticActivity并看到“建立预设置连接”和“不安全连接”失败:

在此处输入图像描述

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将“Android SDK 位置”值更改为平台工具的路径,如下所示: /Users/yourusername/Library/Android/sdk/platform-tools

脚蹼配置

  • Click on "Apply and restart".单击“应用并重新启动”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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