I am creating a project in Android Studio. I want to keep it modular and declare dependencies and versions at single place and take from there in my all modules.
What I've done so far->
import org.gradle.kotlin.dsl.`kotlin-dsl`
plugins {
`kotlin-dsl`
}
repositories{
mavenCentral()
}
But when I am running the Gradle Build there is following error in Build Console

Can anyone help me with the same? I cannot really understand the issue.
I tried gradle build but the error is Unknown.
I fixed this issue in flutter by replacing this line [settings.gradle]
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
with this below line
includeBuild(file("$flutterSdkPath/packages/flutter_tools/gradle").toPath().toRealPath().toAbsolutePath().toString())
It seems like this is an IDE issue. The sync fails when there are symlinks in the project. This happens from AS Hedgehog when AGP 8+ is used. It can be fixed temporarily by downgrading to AS Giraffe until they fix the issue. You can check the status of the issue on the JetBrains issue tracker: https://youtrack.jetbrains.com/issue/IDEA-329756/Importing-symlinked-Gradle-included-build-fails
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With