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

Could not determine artifacts for com.github.yalantis:ucrop:2.2.2-native #1112

Closed
snamstorm opened this issue Sep 19, 2019 · 10 comments
Closed

Comments

@snamstorm
Copy link

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.25.2 (Also tested on v0.25.0)
  • react-native v0.60.3

Platform

Tell us to which platform this issue is related

  • Android

Steps to reproduce

Had no issue building a release version a week ago (no library versions in our app have updated since) - tried yesterday and started to get the below error Could not determine artifacts for com.github.yalantis:ucrop:2.2.2-native.

Saw there were some issues about a year back relating to yalantis:ucrop:2.2.2-native and react-native-image-crop-picker.

Seems that ucrop was migrated to AndroidX 3 days ago, not sure if that is causing this error with react-native-image-crop-picker
https://github.com/Yalantis/uCrop/releases

iOS build still works without any issue

Attachments

Build Error:

FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDevReleaseJavaWithJavac'.
> Could not resolve all dependencies for configuration ':app:devReleaseRuntimeClasspath'.
   > Could not determine artifacts for com.github.yalantis:ucrop:2.2.2-native: Skipped due to earlier error

build.gradle

allprojects {
    repositories {
        // Add jitpack repository (added by react-native-spinkit)
        maven { url "https://jitpack.io" }
        mavenLocal()
        google()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
        maven {
            url "https://maven.google.com"
        }
        maven {
            // Android JSC is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
        }
    }
}
buildscript {
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 28
        supportLibVersion = "28.0.0"
	googlePlayServicesAuthVersion = "16.0.1" 
    }
    repositories {
        google()
        jcenter()
        maven { url 'https://maven.fabric.io/public' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'
        classpath 'com.google.gms:google-services:4.2.0'
    }
}
@harguus
Copy link

harguus commented Sep 20, 2019

I have the same problem! Any solution?

@dandevs
Copy link

dandevs commented Sep 20, 2019

I too am having the same problems, worked fine before.

  • react-native@0.59.10
  • react-native-image-crop-picker@0.24.1

@rasika-vilankar
Copy link

I'm having a similar issue. Any help would be greatly appreciated.

@deflorilemarului
Copy link

same thing here.

All of a sudden the build fails with that error.

im using latest RN and android studio.

any workaround ?

@yurkagon
Copy link
Contributor

yurkagon commented Sep 20, 2019

Add www to https://jitpack.io in build.gradle

maven { url "https://www.jitpack.io" }
(Added www)

I dont know why, but it works as for me

@harguus
Copy link

harguus commented Sep 20, 2019

Add www to https://jitpack.io in build.gradle

maven { url "https://www.jitpack.io" }
(Added www)

I dont know why, but it works as for me

I didn't find this line in my build.gradle file

@snamstorm
Copy link
Author

@yurkagon

Add www to https://jitpack.io in build.gradle

Thanks - tried this and now it works

@dandevs
Copy link

dandevs commented Sep 20, 2019

@ivpusic you should probably put this on the readme

@gitdevzwt
Copy link

I'm having a similar issue. Any help would be greatly appreciated.

"react-native": "0.60.5",
"react-native-image-crop-picker": "^0.25.2",

@yangfanyu
Copy link

Add www to https://jitpack.io in build.gradle

maven { url "https://www.jitpack.io" }
(Added www)

I dont know why, but it works as for me

thanks, it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants