以下是使用react-native-vectorIcons時的錯誤。我遵循https://github.com/oblador/react-native-vector-icons的說明,但在建設項目時仍然面臨錯誤。在使用react-native-vectoricons時生成失敗並出現異常
這裏是MainActivity.java
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new VectorIconsPackage(),
new MapsPackage(this)
);
}
這裏的代碼是settings.gradle
include ':app', ':react-native-maps'
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/android')
include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
代碼有誰能夠告訴我是什麼問題?
在此先感謝。
您使用哪種版本的react-native? –
我正在使用react-native 0.28.0您可以檢查我的解決方案。 – atif