我添加了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.但一切都是徒劳的.我还该怎么办?提前致谢.