Failed to resolve: com.budiyev.android:code-scanner:2.3.2
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
}
me also got this error
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.
implementation 'com.github.yuriy-budiyev:code-scanner:2.3.2'
implementation 'com.github.yuriy-budiyev:code-scanner:2.3.2'
still got the error
same here. I need to use jcenter:
dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() jcenter() } }