Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing ExternalProject for :

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->

  1. Created a New Directory in Project folder
  2. Created a File build.gradle.kts and added the kotlin dsl plugin.
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 Build Error in Console

Can anyone help me with the same? I cannot really understand the issue.

I tried gradle build but the error is Unknown.

like image 663
Prateek Gaur Avatar asked Apr 08 '26 00:04

Prateek Gaur


2 Answers

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())
like image 117
Nandakishor Dhanaji Valakunde Avatar answered Apr 11 '26 02:04

Nandakishor Dhanaji Valakunde


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

like image 29
Tamás Kozmér Avatar answered Apr 11 '26 01:04

Tamás Kozmér