Missing ExternalProject for :
Asked Answered
A

1

9

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.

Amylolysis answered 19/3 at 10:50 Comment(1)
Did you manage to solve the issue? I am facing the same issue with a big multi module project after upgrading to AGP 8, but can't find anything related to this.Denature
A
1

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

Anorexia answered 19/6 at 10:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.