Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Could not find any matches for com.wix:detox:+ as no versions of com.wix:detox are available #2088

Closed
Overtorment opened this issue May 27, 2020 · 1 comment

Comments

@Overtorment
Copy link

I had everything working with Detox (RN).
Then I decided to add --production to npm install, this is supposed to skip devDependencies (this is where detox dep resides).
After that, ./gradlew assembleRelease fails with

> Task :app:lintVitalRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugAndroidTestRuntimeClasspath'.
   > Could not find any matches for com.wix:detox:+ as no versions of com.wix:detox are available.
     Searched in the following locations:
       - file:/home/overtorment/.m2/repository/com/wix/detox/maven-metadata.xml
       - file:/tmp/bw_prod/node_modules/react-native/android/com/wix/detox/maven-metadata.xml
       - file:/tmp/bw_prod/node_modules/jsc-android/dist/com/wix/detox/maven-metadata.xml
       - file:/tmp/bw_prod/node_modules/detox/Detox-android/com/wix/detox/maven-metadata.xml
       - https://dl.google.com/dl/android/maven2/com/wix/detox/maven-metadata.xml
       - https://jcenter.bintray.com/com/wix/detox/maven-metadata.xml
       - https://jitpack.io/com/wix/detox/maven-metadata.xml
     Required by:
         project :app

I assume it tries to include detox from node_modules which doesn't exist because it was not installed by npm, and that's why it fails.

What's the recommended best practice here would be?

Quick googling showed that this should be used only as last resort:

lintOptions { 
    checkReleaseBuilds false
}

(build.gradle)

@support
Copy link

support bot commented May 27, 2020

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the detox tag.

Feel free to post your Stack Overflow question here for more visibility. We'll take a look at it.

For issues with Expo apps, it is most likely not an issue with Detox itself, but with the Expo runtime or with incorrect Detox setup. For support on how to use Detox with Expo, you should contact the Expo team or the Expo community.

For more information on bots in this repository, read this discussion.

@support support bot closed this as completed May 27, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant