android – React Native – 调试适配器进程意外终止

前端之家收集整理的这篇文章主要介绍了android – React Native – 调试适配器进程意外终止前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试在Mac上的VS Code上设置react-native的调试环境.
这是launch.json:
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information,visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0","configurations": [
        {
            "name": "Debug iOS","program": "${workspaceRoot}/.vscode/launchReactNative.js","type": "reactnative","request": "launch","platform": "ios","sourceMaps": true,"outDir": "${workspaceRoot}/.vscode/.react","target": "simulator"
        },{
            "name": "Debug Android","platform": "android","outDir": "${workspaceRoot}/.vscode/.react"
        },{
            "name": "Attach to packager","request": "attach",{
            "name": "Debug in Exponent","platform": "exponent","outDir": "${workspaceRoot}/.vscode/.react"
        }
    ]
}

在调试时我收到错误 – 调试适配器进程意外终止.还有一个错误.

我在Github也开了一个问题,但还没有收到解决方案.

更新:回应ShaneG的回答,我正在添加项目方案和info.plist的截图


解决方法

检查一下:在.vsCode文件夹中,看看你的文件夹是否有.react.

如果不这样做,请尝试运行代码.从项目文件夹的根目录.如果尚未安装shell命令,则需要从VSCode安装(命令shift-command-p并搜索Shell命令:安装代码命令PATH).

这是我的问题,无论出于什么原因,当我从聚光灯打开VSCode时,没有创建.react文件夹.

原文链接:https://www.f2er.com/android/310433.html

猜你在找的Android相关文章