React-native-vector-icons: After installing it gives me error.

Created on 1 Feb 2019  路  5Comments  路  Source: oblador/react-native-vector-icons

startup failed:
settings file 'F:\ProjectsTabs\android\settings.gradle': 3: unexpected char: '\' @ line 3, column 127.
ules\react-native-vector-icons\android')

Most helpful comment

In:
/android/settings.gradle

Replace:

include ':react-native-vector-icons' project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '..\node_modules\react-native-vector-icons\android')

With:

include ':react-native-vector-icons' project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')

All 5 comments

In:
/android/settings.gradle

Replace:

include ':react-native-vector-icons' project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '..\node_modules\react-native-vector-icons\android')

With:

include ':react-native-vector-icons' project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')

guys every time when you link any dependency, kindly check in setting.gradle, there sometime by default, auto linking places '\' in path of dependency, just replace'\' with '/'.

Thanks a lot. @sobanarshad85 @TingAli

Thanks!!

Thanks!!

Was this page helpful?
0 / 5 - 0 ratings