React-native: A new react-native release on jcenter with version 0.42.3-atlassian-1 is seems to be breaking RN builds with version less than 0.42.3

Created on 27 May 2017  Â·  47Comments  Â·  Source: facebook/react-native

Creating new issue from #14223 for better visibility.

For android projects, react native is added as dependency in gradle by using "com.facebook.react:react-native:+" and are linked to android source in react-native package.
But few hours ago, a new release with version 0.42.3-atlassian-1 was added on bintray was added. This is seems to be breaking on React native android build before version 0.44 .
I have checked on 0.41, 0.39.1 and 0.42.1. All projects are failing with same error:

Could not find com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1.

Any resolution with jcenter on this will be helpful.

Locked

Most helpful comment

Not everybody is in a situation to upgrade their projects. So, upgrading cannot be the solution.

All 47 comments

I can confirm it happening also on 0.40.0 on android. But app is able to run on ios.

I'm using the 0.38 version of react-native and I have the same issue.

I have the same issue today, my version is 0.42

Same issue here

@david50407 thanks david that worked.

Same issue on 0.41.0.

same issue on 0.41.2

same issue despite @david50407 's fix, tried on a smattering of RN versions 0.22 -> 0.44

Upgrading react-native from 0.42.0 to 0.42.3 fixed this error for me.

Any update on this? @brentvatne

same issue on RN 0.39.2

Same issue on RN 0.40.0

Agree with @rszalski - try upgrading react-native to 0.42.3. This worked for me as well (upgrading from 0.42.0)

Hi @SathishSundharam,
This is a workaround, not a definitive solution.

The solution is for them to fix the repository.

"com.atlassian.mobile.video" is not avaible on maven right now. To run your project you need to update it

Update your react and react-native version to in your package.json file

"react": "16.0.0-alpha.3",
"react-native": "0.43.1",

Then remove node_modules and do a npm install again

Let me know if it works for you

Not everybody is in a situation to upgrade their projects. So, upgrading cannot be the solution.

"com.atlassian.mobile.video" is not avaible on maven right now. To run your project you need to update it
Update your react and react-native version to in your package.json file
"react": "16.0.0-alpha.3",
"react-native": "0.43.1",
Then remove node_modules and do a npm install again

I actually have

"react": "16.0.0-alpha.6",
"react-native": "0.43.3",

and I'm still getting the same error (wiped npm_modules as well). Is the fix specific to 0.43.1?

Same issue here with "react": "15.3.2","react-native": "^0.36.0" Any idea to workaround this?

I upgraded to version "react-native": "^0.44.0" which solve this problem
but I will not recommend this as it will break your navigator and app will
crash. There is workaround for that too that come at cost of extra code
work.

On Mon, May 29, 2017, 4:50 PM lisitaeugen notifications@github.com wrote:

Same issue here with "react": "15.3.2","react-native": "^0.36.0" Any idea
to workaround this?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/14225#issuecomment-304642504,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACHtxUOxc_xXme-iQ-53C1kfuS4RB0wbks5r-rEDgaJpZM4NoVRI
.

I cannot release or build project react native.
Same issue here with "react-native": "0.32.0" "react-native-cli: 2.0.1" "react": "15.3.1",

The workaround mentioned in https://github.com/facebook/react-native/issues/14223#issuecomment-304447493 seems to work only for app created via react-native scripts. When integrating react-native app into existing android app there is a subsequent error:
`A problem occurred configuring project ':mobile'.

Could not resolve all dependencies for configuration ':mobile:_dev1DebugApk'.
A problem occurred configuring project ':react-native-vector-icons'.
Could not resolve all dependencies for configuration ':react-native-vector-icons:_debugPublishCopy'.
Could not find com.facebook.react:react-native:0.38.0.
Required by:
project :react-native-vector-icons
`

Desperately need a fix for this. Upgrading RN isn't an option (time constraints) so as of RN: 0.35 I can't get it to work. The build.gradle fix suggested did nothing for me. I'm speciffically getting it from react-native-image-picker package. But the atlasion package is the same as being reported here.

Missing Dependency:
com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1

Referenced Package:
react-native-image-picker

RN: 0.35.0

@ChrisPikul510 dirty fix: goto node_modules/react-native-image-picker and change this line to compile "com.facebook.react:react-native:0.20.1" -> https://github.com/react-community/react-native-image-picker/blob/develop/android/build.gradle#L48

@bilalsyed001 Wow, that worked. But it is dirty. It just brought me to another dependency. This time react-native-photo-view not sure how far I want to chase the rabbit down this hole. I'm gonna see how painful the jump from RN 0.35 to 0.42 is... Will report back.

Very Desperate, I think I have to work overnight, come on
0.26 -> 0.44

it's work for me with "react-native": "0.32.0" "react-native-cli: 2.0.1" "react": "15.3.1",
edit on android/build.gradle

allprojects {

repositories {
    mavenLocal()
    jcenter()
    maven {
        // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
        url "$rootDir/../node_modules/react-native/android"
    }

    configurations.all {
        resolutionStrategy {
            eachDependency { DependencyResolveDetails details ->
                if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {
                    details.useVersion "0.32.0" // Your real React Native version here
                }
            }
        }
    }
}

}

I am having same issue as mentioned by @jamescoq

Error:Failed to resolve: com.facebook.react:react-native:0.42.3

Same here, setting up version to my local one: details.useVersion "0.41.2" fixed the issue.

same with @khannasaransh ;
Cant find RN 0.42.3 on maven
Error:Failed to resolve: com.facebook.react:react-native:0.42.3

I managed to fix the issue with build.gradle:

allprojects {
    repositories {
        mavenLocal()
        mavenCentral()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$projectDir/../../node_modules/react-native/android"
        }
        maven {
          // Because some dependencies are differently nested
          url "$projectDir/../../../node_modules/react-native/android"
        }
        maven {
          // Because some other dependencies are nested in yet another way
          url "$projectDir/../../../../node_modules/react-native/android"
        }
    }
}

Nasty, but worked for me; you may need to try with more or less ../

Remember : $rootDir/../node_modules/react-native/android

$rootDir instead of $projectDir

@kibot914 right; that's an explanation why the original solution ~above~ didn't work for me. Thanks a lot!

If you are on RN 0.41.2 then applying the temporary fix that @david50407 suggests above solves the issue right away. No other change required.

Using RN 0.36.1 and @david50407 temporary fix above solves the issue.

The temporary fix by @david50407 does not work for me as I am using a custom fork of 0.43.3 react-native. I get "Failed to resolve: com.facebook.react:react-native:0.43.3"

Upgrading from react-native 0.42.0 to 0.42.3 worked for me

After contacting bintray and asking them to remove invalid release. They have deleted 0.42.3-atlassian-1 release from jcenter repo. App should build without any need of workaround now.

Great! Would there be anything we could do to prevent this from happening
in the future?

i cant start development server even after build successful in windows. i updated react-native version to 0.42.3, message comes 'loading dependency graph, done' in packager. #help

I also had no possibility to change to RN >= 0.44.0 i got it working by switching to version in package.json

    "react": "~15.4.1",
    "react-native": "0.42.0",

and putting this in my build.gradle

    configurations.all {
        resolutionStrategy {
            eachDependency { DependencyResolveDetails details ->
                if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {
                    def file = new File("$rootDir/../node_modules/react-native/package.json")
                    def version = new groovy.json.JsonSlurper().parseText(file.text).version
                    details.useVersion version
                }
            }
        }
    }

Guys, did you tried one more time? cause now all my projects are running fine, it seems that the maven node was restored.

All good in the hood now for me ("react-native": "^0.39.2").

app running cool with version react- 15.3.2, react-native- 0.35.0, but it asks for reactnativepropsregistry.js file missing or changed. So, i put "import { ReactNativePropRegistry } from 'react-native';" in node modules/react native easy grid/utils/ compute props.js... Happy coding after struggling for 5 days straight to figure out the issue solution.

Hi, this issue is happening again, cannot download react-native:0.49.3 from maven, the repos do not exist on both maven and bintray. Using react-native:+ downloads v0.20.1 which is a very old version and is breaking all my react native projects.

Same Problem
HELP me to solve this

  • What went wrong:
    A problem occurred configuring project ':app'.
    > Could not resolve all dependencies for configuration ':app:_debugApk'.
    > A problem occurred configuring project ':react-native-vector-icons'.
    > Could not resolve all dependencies for configuration ':react-native-vector-icons:classpath'.
    > Could not resolve com.android.tools.build:gradle:2.3.+.
    Required by:
    Login_Page:react-native-vector-icons:unspecified
    > Could not resolve com.android.tools.build:gradle:2.3.+.
    > Failed to list versions for com.android.tools.build:gradle.
    > Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml.
    > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml'.
    > Permission denied: connect
Was this page helpful?
0 / 5 - 0 ratings