question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ucrop url not found

See original GitHub issue

Codes are fine, no any errors shown but when I click on run button this errors were found on log and stopped running further.

Summary

8: Task failed with an exception.

  • What went wrong: Execution failed for task ‘:app:mergeDebugNativeLibs’.

Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’. Could not find com.github.yalantis:ucrop:2.2.6-native. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/yalantis/ucrop/2.2.6-native/ucrop-2.2.6-native.pom - https://repo.maven.apache.org/maven2/com/github/yalantis/ucrop/2.2.6-native/ucrop-2.2.6-native.pom - https://jcenter.bintray.com/com/github/yalantis/ucrop/2.2.6-native/ucrop-2.2.6-native.pom Required by: project :app Could not find com.github.dhaval2404:imagepicker:2.1. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/dhaval2404/imagepicker/2.1/imagepicker-2.1.pom - https://repo.maven.apache.org/maven2/com/github/dhaval2404/imagepicker/2.1/imagepicker-2.1.pom - https://jcenter.bintray.com/com/github/dhaval2404/imagepicker/2.1/imagepicker-2.1.pom Required by: project :app Could not find com.github.yalantis:ucrop:2.2.6-native. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/yalantis/ucrop/2.2.6-native/ucrop-2.2.6-native.pom - https://repo.maven.apache.org/maven2/com/github/yalantis/ucrop/2.2.6-native/ucrop-2.2.6-native.pom - https://jcenter.bintray.com/com/github/yalantis/ucrop/2.2.6-native/ucrop-2.2.6-native.pom Required by: project :app > com.github.dhaval2404:imagepicker-support:1.7.1

Code to reproduce

Used in MainActivity on onCreate Method.

fab.setOnClickListener(new View.OnClickListener() {
           @Override
           public void onClick(View view) {
               ImagePicker.with(MainActivity.this)
                       .createIntent();
           }
       });

If I exclude Companion then it shows error with with() method. (Cannot resolve method)

Android version

minSdk 21 targetSdk 31

Impacted devices

Installation method

implementation ‘com.github.dhaval2404:imagepicker:2.1’ implementation ‘com.github.dhaval2404:imagepicker-support:1.7.1’

SDK version

compileSdk 31

Other information

Gradle 7.0.2

buildscript {
    repositories {
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
  dependencies {
        classpath "com.android.tools.build:gradle:7.0.1"
 }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}

This is my gradle.build Project file

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Dhaval2404commented, Aug 27, 2021

@vtxmg There seem to be some changes in the project build.gradle when you use "com.android.tools.build:gradle:7.0.1".

Please add maven { url "https://jitpack.io" } in settings.gradle.

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        jcenter() // Warning: this repository is going to shut down soon
        maven { url "https://jitpack.io" }  //Add this
    }
}

Also, Please revert your project build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
    dependencies {
        classpath "com.android.tools.build:gradle:7.0.1"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
1reaction
vtxmgcommented, Aug 28, 2021

@Dhaval2404 Thank you so much it is working now. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ucrop onActivityMethod not working - Stack Overflow
Uri destinationUri = Uri.fromFile(new File(myContext.getCacheDir(), "IMG_" + System.currentTimeMillis())); UCrop.of(sourceUri, destinationUri) .
Read more >
Using Smart Crop with AEM Assets Dynamic Media
AEM Sites' Dynamic Media component supports Smart Crop. Published URL for the Smart Cropped asset is available to be used with 3rd party ......
Read more >
com.yalantis : ucrop : 2.1.1 - Maven Central Repository Search
uCrop. Android Library for cropping images. Licenses. The Apache Software License, Version 2.0. Home page ...
Read more >
react-image-crop - npm
A responsive image cropping tool for React. Latest version: 10.0.9, last published: 21 days ago. Start using react-image-crop in your ...
Read more >
There has been an error cropping your image - WordPress.org
Hello, There's a problem for me to crop images on my theme. ... I found errors in the Apache error log for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found