网络上很多都是说摇一摇就能打开开发者菜单。但是我摇的时候经常把数据线要出来。所以查了官方文档查到了这个命令: adb shell input keyevent 82。 当然得配一下android的环境变量。 参考地址:https://reactnative.cn/docs/debugging/