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

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 #14225

Closed
gShrey opened this issue May 27, 2017 · 47 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@gShrey
Copy link

gShrey commented May 27, 2017

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.

@kishanj918
Copy link

kishanj918 commented May 27, 2017

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

@hjumeau
Copy link

hjumeau commented May 27, 2017

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

@bestotem
Copy link

I have the same issue today, my version is 0.42

@Knorcedger
Copy link

Same issue here

@david50407
Copy link

Try the temporary fix here #14223 (comment)

@kishanj918
Copy link

@david50407 thanks david that worked.

@timscott
Copy link

Same issue on 0.41.0.

@muneebsajjad
Copy link

same issue on 0.41.2

@freckletonj
Copy link

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

@rszalski
Copy link

rszalski commented May 27, 2017

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

@xwartz
Copy link

xwartz commented May 28, 2017

Any update on this? @brentvatne

@weiliank
Copy link

same issue on RN 0.39.2

@EslamNasser
Copy link

Same issue on RN 0.40.0

@metelski
Copy link

metelski commented May 28, 2017

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

@pentateu
Copy link

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

The solution is for them to fix the repository.

@arunkumarrmrj
Copy link

"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

@bucketclan
Copy link

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

@inakianduaga
Copy link

inakianduaga commented May 29, 2017

"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?

@LisitaEugen
Copy link

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

@muneebsajjad
Copy link

muneebsajjad commented May 29, 2017 via email

@rezaarifian
Copy link

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",

@jamescoq
Copy link

The workaround mentioned in #14223 (comment) 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
`

@chris-pikul
Copy link

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

@bilalsyed001
Copy link

@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

@chris-pikul
Copy link

@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.

@kibot914
Copy link

kibot914 commented May 29, 2017

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

@rezaarifian
Copy link

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
                }
            }
        }
    }
}

}

@khannasaransh
Copy link

I am having same issue as mentioned by @jamescoq

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

@tiofabby
Copy link

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

@monumentyusuf
Copy link

monumentyusuf commented May 29, 2017

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

@kibot914
Copy link

https://bintray.com/bintray/jcenter/com.facebook.react%3Areact-native#

@tszajna0
Copy link
Contributor

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 ../

@kibot914
Copy link

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

$rootDir instead of $projectDir

@tszajna0
Copy link
Contributor

tszajna0 commented May 29, 2017

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

@ghost
Copy link

ghost commented May 30, 2017

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.

@simaoneves
Copy link

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

@shrutic
Copy link
Contributor

shrutic commented May 30, 2017

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"

@nowtech
Copy link

nowtech commented May 30, 2017

Upgrading from react-native 0.42.0 to 0.42.3 worked for me

@gShrey
Copy link
Author

gShrey commented May 31, 2017

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.

@gShrey gShrey closed this as completed May 31, 2017
@godspeedelbow
Copy link

godspeedelbow commented May 31, 2017 via email

@piyush565
Copy link

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

@matthiasprieth
Copy link

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
                }
            }
        }
    }

@AdrianZghibarta
Copy link

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

@monotv
Copy link
Contributor

monotv commented May 31, 2017

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

@piyush565
Copy link

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.

@abhrp-hs
Copy link

abhrp-hs commented Oct 27, 2017

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.

@ABKZR
Copy link

ABKZR commented Jan 8, 2018

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

@facebook facebook locked as resolved and limited conversation to collaborators May 31, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests