You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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.
I had everything working with Detox (RN).
Then I decided to add
--production
tonpm install
, this is supposed to skip devDependencies (this is where detox dep resides).After that,
./gradlew assembleRelease
fails withI 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:
(build.gradle)
The text was updated successfully, but these errors were encountered: