Home > OS >  Installing dependencys with Gradle Kotlin DSL does not work
Installing dependencys with Gradle Kotlin DSL does not work

Time:10-18

Hi everyone I am new to IntelliJ in general and especially to Gradle and I feel like a total noob. :D

Im not sure if this is a Kotlin DSL thing or if I just do it the wrong way and it wouldn't work in Groovey either.

After hours of trial and error and reading other SO posts I'm still not able to install a simple dependency... it can't be that hard...

Currently I am playing around with Jetpack Compose for Desktop even though it's still in alpha and it works but for the love of god I am not able to add a dependency.

So here is my Problem:

I try to install the dependency like they say I should in enter image description here

And try to compile it I get an exception during the build process:

enter image description here

What I tried so far:

I checked if the repository maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") who is configured in my build.gradle.kts repositories-section and in my settings.gradle.kts pluginManagement-section contains the package that I want. The site enter image description here

And after some searching the web in order to find out what an "aar" file is and why I didn't get a jar file like I expected it turns out that android has it's own little file format for android applications and that those cannot be used in regular java/kotlin projects.

I read somewhere, that 'aar' files contain a jar file and some other stuff and extracting the jar file from the aar file may be a way to get it working, but it didn't fix anything, maybe because the dependencies of the navigation package are aar files as well and therefor I'd need those packages as well and extract the jar file from those as well and it all seems like this isn't the right way...

So I guess I have to wait until Jetpack Compose for desktop somehow is able to use aar files or until the repositories deliver the packages in a regular jar file.

  • Related