小编Neh*_*eha的帖子

由于react-native-gesture-handler,无法运行响应本机项目

我添加了react-navigation和react-native-gesture-handler.当我使用react-native run-android运行项目时,我收到以下错误:

  • 什么地方出了错:
Could not compile settings file 'C:\Users\pc\Desktop\GSTCalc\android\settings.gradle'.
> startup failed:
settings file 'C:\Users\pc\Desktop\Project\android\settings.gradle': 3: unexpected char: '\' @ line 3, column 133.
Run Code Online (Sandbox Code Playgroud)
Following is the content of my settings.gradle file:
Run Code Online (Sandbox Code Playgroud)

rootProject.name = 'GSTCalc'
include ':react-native-gesture-handler'
project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '..\node_modules\react-native-gesture-handler\android')
include ':app'
Run Code Online (Sandbox Code Playgroud)

我试图从我的项目文件夹中删除node-modules文件夹.并运行npm install.但一切都是徒劳的.我还该怎么办?提前致谢.

android npm react-native react-navigation

1
推荐指数
1
解决办法
2361
查看次数

标签 统计

android ×1

npm ×1

react-native ×1

react-navigation ×1