gpt4 book ai didi

React-native 0.21(android)远程调试器(Chrome)无法连接

转载 作者:行者123 更新时间:2023-12-04 04:14:06 25 4
gpt4 key购买 nike

我的远程调试(通过 Chrome 和 React-native 开发工具 0.14.8)过去工作正常。

我不确定中间到底发生了什么(我升级到 react-native 0.21,更新了 android studio,使用 apt-get update/upgrade 更新了 Linux Mint 17.3)。

但现在我只看到“请稍候在我的模拟器上连接到远程调试器” 大约 5-8 秒,然后出现错误(见附图):“无法连接远程调试器”

我尝试重新安装 Chrome React-native 扩展。尝试重建我的应用程序。没有帮助。我不确定问题出在哪里。可能我只需要增加连接超时的值..但似乎没有这样的选项。

下面也是我的 package.json(由于各种依赖问题,从 0.20 升级到 0.21 花了几天时间)。可能那里有我缺少的新设置,有人可以指出。

{
"name": "ftesting",
"version": "1.0.0",
"description": "ftesting desc",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node_modules/react-native/packager/packager.sh",
"android-setup-port": "adb reverse tcp:8081 tcp:8080",

"test": "eslint ./src/js.app/my.forms",
"start": "rnws start",
"clean:babelrc": "find ./node_modules -name react-packager -prune -o -name '.babelrc' -print | xargs rm -f",
"postinstall": "npm run clean:babelrc"
},
"repository": {
"type": "git",
"url": "xyz" },
"keywords": [
"ftesting"
],
"author": "ls",
"license": "MIT",


"engines": {
"node": ">=4",
"npm": ">=2 <4"
},

"devDependencies": {


"babel-eslint": "^6.0.0-beta.1",

"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-1": "^6.5.0",


"eslint": "~2.2.0",
"eslint-loader": "^1.1.1",
"eslint-plugin-react": "^4.2.0"

},


"dependencies": {

"react-native": "^0.21.0",

"@remobile/react-native-splashscreen": "^1.0.3",

"react-native-blur": "^0.7.10",
"react-native-htmlview": "^0.2.0",


"react-native-material-kit": "^0.3.0",
"react-native-material-design": "^0.3.3"
}
}

最佳答案

针对此问题发布了一个 github 问题。你可以关注那里: https://github.com/facebook/react-native/issues/6390

关于React-native 0.21(android)远程调试器(Chrome)无法连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35973511/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com