5

脚蹼Hermes debugger不显示

请问如何让他正常显示?</p>

react-native:0.62.2(从0.61更新到0.62.2)

https://fbflipper.com/

https://reactnative.dev/docs/hermes

错误信息:

Metro is connected but no Hermes apps were found.

Open a React Native screen with Hermes enabled to connect. Note: you may need to reload the app in order to reconnect the device to Metro.

在此处输入图像描述

在此处输入图像描述

4

1 回答 1

2

在 android/app/build.gradle 文件中遵循这个

project.ext.react = [
  entryFile: "index.js",
  enableHermes: true 
]

这在 proguard-rules.pro 文件中

-keep class com.facebook.hermes.unicode.** { *; }
-keep class com.facebook.jni.** { *; }

$ cd android && ./gradlew clean

为我工作

于 2021-02-03T10:46:04.677 回答