Environment:
OS: macOS High Sierra 10.13.4
Node: 9.11.1
Yarn: 1.5.1
npm: 5.6.0
Watchman: 4.7.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 2.2 AI-145.3360264
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.3 => 0.55.3
android/build.gradle file:compile 'com.facebook.react:react-native:0.18.+'
Build succeeds.
Build failed.
See the following sample error message:
Could not resolve all dependencies for configuration ':app:_debugApk'.
A problem occurred configuring project ':react-native-amplitude-analytics'.
Could not resolve all dependencies for configuration ':react-native-amplitude-analytics:_debugPublishCopy'.
Could not find any version that matches com.facebook.react:react-native:0.18.+.
Versions that do not match:
0.20.1
0.14.0
0.12.0
0.55.3
Required by:
project :react-native-amplitude-analytics
I know this might be solved by pinning a newer version or just making it target com.facebook.react:react-native:+ but I find it rather strange that it was able to find older versions such as 0.14.0 but not 0.18.+.
If this version was removed, how can we find out the status of each version? Is there a schedule for removal as well?
Thanks a lot.

Same issues
I have the same issue. It was just working fine before, but now I get this error. I need to release my app. Even running gradle clean fails now with the same error.
Please refer to https://github.com/facebook/react-native/issues/19259
Hi @kelset, thanks for replying here.
I'm having some trouble understanding how #19259 is related to this issue. It seems to me that it is a different problem.
Your comment on that thread was:
As mentioned by @Wiltzu it seems that this issue surfaced when someone on maven 'upgraded' the react native dependency.
This means that you need to fix your dependency instead of just depending on "latest" (which is standard behaviour on Android when you don't explicitly say the version number - from my understanding).
I urge you all to properly set fixed version numbers on your gradle files (and also your package.json, and so on) for each dependency in order to avoid these kind of side effects.
What I'm facing is exactly the opposite here. We have the version number set to 0.18.+. I know it's very ancient, but I have also read #13094 and it looks like 0.18.0is published both in Maven and Bintray.
FYI, I have checked:
https://bintray.com/bintray/jcenter/com.facebook.react:react-native/view#
http://repo1.maven.org/maven2/com/facebook/react/react-native/0.18.0/
I understand that we can do something like the workaround of pinning libraries to a specific version, but I didn't get why I can build react-native from
compile 'com.facebook.react:react-native:0.18.+'
Just got the same thing, except mine didn't start failing until this morning. Strange - a npm -g update fixed it by updating react-native as you thought it might, but it's certainly a mystery.
@kelset I am also not sure how this is related? I am well aware of the issue you refer to. But it seems that previously dependencies like "com.facebook.react:react-native:0.18.+" did resolve until today/yesterday? I'm seeing libraries creating new versions just to address this specific issue in their build.gradle by changing the dependency to "com.facebook.react:react-native:+". Not sure this is how it should be?
This seems like a new issue that is unrelated?
@bitcrumb from what I've read #19259 it might be related to this issue if after what happened they decided to remove builds that were not actually uploaded by facebook (this is my hypothesis, not something they stated). That's what I understood from reading #13094. I'd really appreciate some input from @kelset or @hramos here though.
Something did happen over at jcenter:
https://bintray.com/bintray/jcenter/com.facebook.react%3Areact-native/0.18.0#statistics
Maybe the previous react-native packages were replaced by an 'official' upload?
Either way, running ./gradlew --refresh-dependencies fixed it for me.
Yes, this is related to #19259. If you're still unsure why, the explanation that is linked to at the end of that thread can be found here: https://github.com/facebook/react-native/issues/13094#issuecomment-389568018
So what happened is that someone else probably uploaded some builds to that domain and now they were removed and official ones are being put there, is that correct @hramos ?
Yes, the TLDR is that.
Cool thx. Clears that up :)
Thanks! 馃挴
Most helpful comment
Same issues