code-scanner icon indicating copy to clipboard operation
code-scanner copied to clipboard

Failed to resolve: com.budiyev.android:code-scanner:2.3.2

Open haqim007 opened this issue 3 years ago • 5 comments

Screenshot 2022-11-17 at 15 56 19

When I reset/invalidate caches of android studio and rebuild the app, I found this error.

here is my build.gradle


buildscript {
    ext {
        kotlin_version = '1.6.21'
        code_scanner_version = "2.3.2"
    }
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath "com.android.tools.build:gradle:7.2.0"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }

}

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

haqim007 avatar Nov 17 '22 08:11 haqim007

me also got this error

faridsavarudin avatar Nov 17 '22 14:11 faridsavarudin

Actually, Scratch that. Ensure that the following lines of code are present in your <settings.gradle> file.

maven { url 'https://jitpack.io' }

This will resolve the dependency issue.

BennyDanielT avatar Nov 24 '22 03:11 BennyDanielT

implementation 'com.github.yuriy-budiyev:code-scanner:2.3.2'

JonathanAJ avatar Dec 30 '22 18:12 JonathanAJ

implementation 'com.github.yuriy-budiyev:code-scanner:2.3.2'

still got the error

haqim007 avatar Jan 19 '23 03:01 haqim007

same here. I need to use jcenter:

dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() jcenter() } }

gianpaolof avatar Mar 25 '24 16:03 gianpaolof