Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/218.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Reac本机首次运行_Javascript_Android_React Native - Fatal编程技术网

Javascript Reac本机首次运行

Javascript Reac本机首次运行,javascript,android,react-native,Javascript,Android,React Native,我是react native的新手,我正在尝试运行我的第一个helloworld项目。 但是我得到了这个错误 我如何解决这个问题? 运行jetifier将库迁移到AndroidX的信息。你可以 使用“-no jetifier”标志禁用它。Jetifier发现863个文件要 向前喷射。使用4个工人。。。正在启动JS服务器。。。信息 正在安装应用程序 失败:生成失败,出现异常 错误:无法确定任务“:app:preDebugBuild”的依赖项 无法解析配置“:app:debugRuntimeCla

我是react native的新手,我正在尝试运行我的第一个helloworld项目。 但是我得到了这个错误 我如何解决这个问题?

运行jetifier将库迁移到AndroidX的信息。你可以 使用“-no jetifier”标志禁用它。Jetifier发现863个文件要 向前喷射。使用4个工人。。。正在启动JS服务器。。。信息 正在安装应用程序

失败:生成失败,出现异常

  • 错误:无法确定任务“:app:preDebugBuild”的依赖项

    无法解析配置“:app:debugRuntimeClasspath”的所有任务依赖项。 无法解析org.webkit:android jsc:+。 要求: 项目:应用程序 未能列出org.webkit:android jsc的版本。 无法从加载Maven元数据。 无法获取资源“”。 无法获取“”。 从服务器接收到状态代码522:原点连接超时

  • 尝试:使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的洞察力

  • 得到更多的帮助

构建在48秒内失败

at checkExecSyncError (child_process.js:621:11)
at execFileSync (child_process.js:639:15)
at runOnAllDevices (C:\Users\amaro.manungu\AmaroProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:74:39)
at buildAndRun (C:\Users\amaro.manungu\AmaroProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:158:41)
at C:\Users\amaro.manungu\AmaroProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:125:12
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Command.handleAction (C:\Users\amaro.manungu\AmaroProject\node_modules\react-native\node_modules\@react-native-community\cli\build\cliEntry.js:160:7)
安装应用程序失败时出错。确保你有安卓系统 开发环境设置: . 有关详细信息,请使用--verbose标志运行CLI。错误:命令失败: gradlew.bat应用程序:installDebug-PreactNativeDevServerPort=8081

失败:生成失败,出现异常

  • 错误:无法确定任务“:app:preDebugBuild”的依赖项

    无法解析配置“:app:debugRuntimeClasspath”的所有任务依赖项。 无法解析org.webkit:android jsc:+。 要求: 项目:应用程序 未能列出org.webkit:android jsc的版本。 无法从加载Maven元数据。 无法获取资源“”。 无法获取“”。 从服务器接收到状态代码522:原点连接超时

  • 尝试:使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的洞察力

  • 得到更多的帮助

构建在48秒内失败

at checkExecSyncError (child_process.js:621:11)
at execFileSync (child_process.js:639:15)
at runOnAllDevices (C:\Users\amaro.manungu\AmaroProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:74:39)
at buildAndRun (C:\Users\amaro.manungu\AmaroProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:158:41)
at C:\Users\amaro.manungu\AmaroProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:125:12
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Command.handleAction (C:\Users\amaro.manungu\AmaroProject\node_modules\react-native\node_modules\@react-native-community\cli\build\cliEntry.js:160:7)

在android/build.gradle中更改以下内容

maven { url 'https://jitpack.io' }


来源:

您是否使用internet连接运行了
react native run android
?是的,我运行过。