路径不能为空或空字符串。路径='空'?

问题描述 投票:0回答:1

rootProject.name = '视频'

从以下位置申请: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), ".. /scripts/autolinking.gradle"); useExpoModules()

从以下位置申请: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir ).text.trim(), "../native_modules.gradle"); applyNativeModulesSettingsGradle(设置)

包括“:应用程序” 包括 ':react-native-video' 项目(':react-native-video').projectDir = new File(rootProject.projectDir,'../node_modules/react-native-video/android-exoplayer') includeBuild(new File(["node", "--print", "require.resolve('react-native-gradle-plugin/package.json')"].execute(null, rootDir).text.trim() ).getParentFile())

包括 ':@react-native-firebase_analytics' 项目(':@react-native-firebase_analytics').projectDir = new File(rootProject.projectDir,'./../node_modules/@react-native-firebase/analytics/android')

if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") { 包括(“:ReactAndroid”) project(":ReactAndroid").projectDir = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text .trim(), "../ReactAndroid"); 包含(“:ReactAndroid:hermes-engine”) 项目(":ReactAndroid:hermes-engine").projectDir = new File(["node","--print","require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../ReactAndroid/hermes-engine"); } enter image description here

我正在将我的 React Native 项目从 0.70 更新到 0.73 最新版本,在此过程中我无法 Nun 我的 React Native 应用程序并面临此错误设置文件 'D: tv2\player ndroid\settings.gradle' 行:12

  • 出了什么问题: 评估设置“视频”时出现问题。

路径不能为空或空字符串。路径='空'

我需要这个错误的解决方案,并且 RN 应用程序能够顺利运行,没有任何错误

android react-native android-gradle-plugin
1个回答
0
投票

该项目似乎没有正确检测您的路径。你确定你的项目路径写对了吗?或者,您可以尝试使用“D:/etv2/player/android /settings.gradle”而不是“D: tv2\player ndroid \settings.gradle”吗?

© www.soinside.com 2019 - 2024. All rights reserved.