Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Build fails - Could not find com.atlassian.mobile #375

Open
amirfefer opened this issue May 27, 2017 · 4 comments
Open

Build fails - Could not find com.atlassian.mobile #375

amirfefer opened this issue May 27, 2017 · 4 comments

Comments

@amirfefer
Copy link

amirfefer commented May 27, 2017

Build fails due to absent of com.atlassian.mobile.video:okhttp-ws-compat:3.7.0

* What went wrong:
A problem occurred configuring project ':app'.
> A problem occurred configuring project ':react-native-fetch-blob'.
   > Could not resolve all dependencies for configuration ':react-native-fetch-blob:_debugCompile'.
      > Could not find com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1.
        Searched in the following locations:
            https://jitpack.io/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0
-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.pom
            https://jitpack.io/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0
-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.jar

RN 0.41.2

@ugendrang
Copy link

+1

@jackfiallos
Copy link

Read more about this #14225

@lavarajallu
Copy link

lavarajallu commented May 29, 2017

Update the Version Package.Json,

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

after that
npm install --force

@janaka120
Copy link

janaka120 commented May 29, 2017

I had the same problem. I found out solution in #14223

Since gradle doesn't support declaring repositories on a per-artifact basis yet.

Add this modification to build.gradle (not app/build.gradle) to force all dependency to react-native to the specific version:


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

if you are using this code you don't need to add react-native version manually,

allprojects {
     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
                }
            }
        }
    }  
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.