gpt4 book ai didi

android - 找不到 com.wix :detox:+ 的任何匹配项

转载 作者:行者123 更新时间:2023-12-02 04:21:33 24 4
gpt4 key购买 nike

尝试在我的 android 设备上运行 detox 并遇到以下错误:

> Configure project :react-native-firebase
react-native-firebase: using React Native prebuilt binary from /Users/m/Desktop/alohapass-business/node_modules/react-native/android

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileStagingDebugAndroidTestJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:stagingDebugAndroidTestCompileClasspath'.
> Could not find any matches for com.wix:detox:+ as no versions of com.wix:detox are available.
Required by:
project :app

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s

我有 androidTestImplementation('com.wix:detox:+') { transitive = true }在我的 build.gradle并且正在运行 ./gradlew assembleAndroidTest .

有任何想法吗?

最佳答案

您是否尝试将其添加到 android/build.gradle?

// Note: add the 'allproject' section if it doesn't exist
allprojects {
repositories {
// ...
google()
maven {
// All of Detox' artifacts are provided via the npm module
url "$rootDir/../node_modules/detox/Detox-android"
}
}
}

关于android - 找不到 com.wix :detox:+ 的任何匹配项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59481388/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com