knthmn
06/03/2021, 4:33 AMCannot get version candidates with an empty fetchers list.
Details in threadsettings.gradle.kts
plugins {
id("de.fayard.refreshVersions") version "0.10.0"
}
In my app/build.gradle.kts
, I changed the following just to try it out
// before: implementation("androidx.core:core-ktx:1.5.0")
implementation(AndroidX.core.ktx)
louiscad
06/03/2021, 9:21 AMknthmn
06/03/2021, 9:27 AMbuild.gradle.kts
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:7.0.0-beta03")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle.kts files
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
build.gradle.kts (:app)
plugins {
id("com.android.application")
id("kotlin-android")
}
android {
compileSdk = 30
buildToolsVersion = "30.0.3"
defaultConfig {
applicationId = "com.github.knthmn.myapplication"
minSdk = 23
targetSdk = 30
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"<http://proguard-rules.pro|proguard-rules.pro>"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}
dependencies {
implementation("androidx.core:core-ktx:_")
implementation("androidx.appcompat:appcompat:1.3.0")
implementation("com.google.android.material:material:1.3.0")
testImplementation("junit:junit:4.+")
androidTestImplementation("androidx.test.ext:junit:1.1.2")
androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0")
}
gradle-wrapper.properties
#Thu Jun 03 17:22:30 CST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
settings.gradle.kts
plugins {
id("de.fayard.refreshVersions") version "0.10.0"
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
jcenter() // Warning: this repository is going to shut down soon
}
}
rootProject.name = "My Application"
include(":app")
louiscad
06/03/2021, 9:29 AMdependencyResolutionManagement
yet. Can you try using allprojects { }
instead to see if it'll fix it first?knthmn
06/03/2021, 9:31 AMlouiscad
06/03/2021, 9:31 AMknthmn
06/03/2021, 9:32 AMlouiscad
06/03/2021, 9:35 AMknthmn
06/03/2021, 9:39 AMlouiscad
06/03/2021, 9:42 AMdependencyResolutionManagement
with allprojects
(so in build.gradle.kts
), not to ditch the repos altogether.knthmn
06/03/2021, 9:56 AMrepositories
back to allprojects
when I tried it. It works now. Thank you