背景:,我正在尝试在一个反应本机项目上安装RNUILib,但它不会构建。我遵循了官方指南的指示。
环境: Android/Windows
这里是我的依赖项:
@react-native-community/blur : 3.6.0
@react-native-community/datetimepicker : 3.5.2
@react-native-community/masked-view : 0.1.11
@react-native-community/netinfo : 6.0.1
@react-native-picker/picker : 1.16.7
@react-navigation/drawer : 6.1.4
@react-navigation/native : 6.0.2
react: 17.0.2
react-native: 0.65.1
react-native-gesture-handler : 1.10.3
react-native-reanimated : 2.3.0-alpha.2
react-native-safe-area-context : 3.3.0
react-native-screens : 3.6.0
react-native-ui-lib : 5.30.0
来自react-native run-android
命令的错误日志:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.eightbitlab:blurview:1.6.3.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/eightbitlab/blurview/1.6.3/blurview-1.6.3.pom
- https://repo.maven.apache.org/maven2/com/eightbitlab/blurview/1.6.3/blurview-1.6.3.pom
- file:/C:/Users/vfvic/.m2/repository/com/eightbitlab/blurview/1.6.3/blurview-1.6.3.pom
- file:/D:/_react-native/CBTracker2/node_modules/react-native/android/com/eightbitlab/blurview/1.6.3/blurview-1.6.3.pom
- file:/D:/_react-native/CBTracker2/node_modules/jsc-android/dist/com/eightbitlab/blurview/1.6.3/blurview-1.6.3.pom
- https://www.jitpack.io/com/eightbitlab/blurview/1.6.3/blurview-1.6.3.pom
Required by:
project :app > project :react-native-community_blur
正如我所提到的,我已经执行了安装指南中的所有步骤,包括@react-native-community/blur
的链接。
发布于 2022-01-29 21:25:40
虽然很晚了,但希望它能帮上忙,像下面这样更新android/build.gradle
allprojects {
repositories {
....rest
jcenter() {
content {
includeModule("com.eightbitlab", "blurview")
}
}
}
}
https://stackoverflow.com/questions/68934039
复制相似问题