【发布时间】:2018-10-25 22:08:47
【问题描述】:
安装 react-native-vector-icons 并尝试在模拟器中构建 android 应用程序后,我在 react-native 项目中遇到问题。我在 Windows 上工作。 我按照手册中的说明安装了库并链接了它,但我认为我有依赖问题。
C:\react-native run-android
Scanning folders for symlinks in C:\Users\user\Source\reactnative\myapp\node_modules (43ms)
Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat installDebug)...
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\user\Source\reactnative\myapp\node_modules\react-native-vector-icons\android\build.gradle' line: 4
* What went wrong:
A problem occurred evaluating project ':react-native-vector-icons'.
> Could not find method google() for arguments [] on repository container.
已安装版本: “反应”:“16.3.1”, “反应原生”:“0.55.4”, “反应原生元素”:“^0.19.1”, "react-native-vector-icons": "^6.0.2",
有人可以帮帮我吗?
【问题讨论】:
标签: android windows react-native react-native-android android-icons