How can i resolve this below error in to resolve ...
# community-support
v
How can i resolve this below error in to resolve this issue i have Crate the libs.version.toml file Which is
Copy code
[versions]
kotlin = "1.8.0"
coroutines = "1.6.0"

[libraries]
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
And the issue is. What went wrong: Script compilation errors: Line 29: alias(libs.plugins.android.application) apply false ^ Unresolved reference: libs Line 30: alias(libs.plugins.kotlin.jvm) apply false ^ Unresolved reference: libs Line 31: alias(libs.plugins.kotlin.serialization) apply false ^ Unresolved reference: libs Line 32: alias(libs.plugins.hilt) apply false ^ Unresolved reference: libs Line 33: alias(libs.plugins.secrets) apply false ^ Unresolved reference: libs
t
Which Gradle version are you using? Does it supports version catalogs? Does it possibly require that you enable the feature preview? Is your file correctly named
libs.versions.toml
(versions, plural, your message has it singular) and placed inside the
gradle/
folder next to your settings script?
v
gradle/libs.versions.toml
file.
Copy code
[versions]
kotlin = "1.8.0"
coroutines = "1.6.0"

[libraries]
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
Copy code
#Sun Oct 13 22:06:00 IST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
v
How do you expect this to work? You try to use 5 plugins from your version catalog. But as far as you told us two times, your version catalog does not define any plugin but only two libraries.