[英]react-native run-android build error after react-native link
ERROR: startup failed:
settings file 'C:\Users\ACER\Documents\project\react-native\app\android\settings.gradle': 3: unexpected char: '\' @ line 3, column 113.
ode_modules\react-native-admob\android')
^
1 error
When react-native link
is used it shows error in node module with every package, eg: firebase, linear-gradient, admob etc. any solution? 使用
react-native link
,它在每个软件包的节点模块中都显示错误,例如:firebase,linear-gradient,admob等。任何解决方案? I have tried everything i find out. 我已经尽力了。
This is a simple problem to deal with, and it happens anytime you install packages and link them with react-native link
on Windows. 这是一个简单的问题,在Windows上安装软件包并将其链接到
react-native link
时都会react-native link
。 To solve this problem, just go to your settings.gradle
file located at YourApp\\android\\settings.gradle
the change all the backslashes \\
to forward slashes /
. 要解决此问题,只需转到位于
YourApp\\android\\settings.gradle
的settings.gradle
文件,将所有反斜杠\\
更改为正斜杠/
。 so it should look like this: 所以它应该像这样:
include ':react-native-vector-icons' project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
Good luck! 祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.