hello I installed Android Studio, JDK 23 and Fleet...
# multiplatform
g
hello I installed Android Studio, JDK 23 and Fleet via Toolbox and used this Multiplatform wizard to create the project and when I open it in Fleet I get We recommend upgrading to Gradle version 8.10. The maximum compatible Gradle JVM version is 22. What of those tools did actually install Gradle and how do I upgrade it? Why is this not mentioned in the docs?
p
The project comes with a Gradle wrapper script that you can use to set the Gradle version
g
But what did install Gradle on my PC? Was it Android Studio? It seems not. Was it Fleet?
Was it the JDK?
How can I actually upgrade it?
The docs feel like always getting sent to 10 different places instead of reading one page after the another
If you compare that to Rust
Run configs also get not detected as descirbed in the docu
Its really like you get send to Place A in the docs and then you are 10 pages down in the docs and then again 5 pages up
p
Change it in this file
/gradle/wrapper/gradle-wrapper.properties
Look on the internet for the right version. Gradle is needed to build the App. It doesn't fully install it in the Mac, it just pull it locally for the build
g
The message inferts that it is installed
I am on Windows
It just says I have to upgrade
It does not say it is not installed
And the projects always disconnects itself in Fleet after some time, how in the world does it close itself, why does it do that
p
Or well, depending what you call installation but yes it pull the Gradle binaries to some place locally. I believe is somewhere in ~/.gradle directory
g
I do not even know where to go to upgrade it
p
Humm I see. I am not a user of Fleet but sounds like is still buggy
g
The docs say Fleet is the best IDE for Kotlin Compose
To be honest the Developer experience feels horrible so far. I coded with so many languages, never felt so stuck with any getting started docu
👍 1
p
That's what it says right. Perhaps is more stable on Mac
g
It is truly horrible
😅 1
p
I prefer Android Studio. Tried Fleet time ago and was very buggy
g
I want to code for Desktop
Maybe Android in the future
But mainly Desktop
p
Android Studio works for Desktop too. And IntelliJ too
g
I installed INtelliJ too via Toolbox such that the waiting for IntelliJ message goes away in Fleet
Also not mentioned in the docs
Then it actually started doing something
Before it did nothing
gradle -v says does not exist
I gues I just install it manually and see what happens
p
But don't give up, give Fleet some more time. If it keeps bothering you then switch, but apparently is the future
g
Luckily I run this in a Sandbox and did install nothing so far on my machine ^^
Do I even need Android Studio if I only develop for Desktop?
I guess not right?
What version of the JDK do I need? Does it not support v23?
one thing is certain if you install Fleet, JDK 23 and download the Desktop project from the wizard things to not work
p
You can use any of the 3 IDEs for desktop development. The version of java comes tied to the version of Gradle. You will have to find a working pair. I normally use whatever comes embedded in the IDE. The most recent ones are embedding
java 21
which works well with
Gradle 8.10.2
at least that has worked for me
g
I tried to change Gradle to 8.10. Now it does something, but at the end fails Gradle: Could not import project long error log. Why in the world do the docs not mention anything how to get a working setup
They just mention download JDK
Of course I download the latest
Then they link you to a wizard to get a hello world
Of course I download it and start it
Does not work
Absolute worst dev experience ever without any doubt
p
Documentation is not the best, many people has complained already. I believe that's why they(JB) created this slack workspace 😀
g
Yeah somebody mentioned to me Java is the worst documented ecosystem by far
It is like being an Ape
Try and error all the time
They work with Java since years and say it is the worst ^^
👍 1
p
If you use Android Studio you have to install the desktop development plugin for a better experience. Or you could try IntelliJ, I have heard is great for desktop
g
Unfortunately Tauri does not suit my needs I would go instantly with it if they would ship with a chrominium instead of using this locally installed webkit s
Electron feels much worse then Tauri and I try to avoid it
One other option is Flutter
Which seems extremely esoteric to me
And this Kotlin compose the docs suck 😕
Bad situation
😸 1
lol now it actually runs out of nowhere
Did nothing different just reloaded a few times
I had to change this line distributionUrl=https\:<//services.gradle.org/distributions/gradle-8.9-bin.zip> to distributionUrl=https\:<//services.gradle.org/distributions/gradle-8.10-bin.zip> Then it worked
Thanks your suggestion above helped me very much
👍 1
p
No problem 👍
g
Actually Kotlin feels quite solid now. The Hello World of a Kotlin project was a little bit difficult since it is not really documented at kotlinlang.org how to do that, they just provide playgrounds to execute the example, but no docs how to run this locally. Compose was also difficult to setup in the beginning since nothing is documented what version you should download of JDK and Gradle.
Language docs now feels quite solid besides the hello world of those two things
And the language and tooling feels modern and solid so far
Like you also do not know in the beginning where does the compiler actually come from. Such things are not really documented. i found out the compiler comes from here
Copy code
plugins {
    // Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
    alias(libs.plugins.kotlin.jvm)

    // Apply the application plugin to add support for building a CLI application in Java.
    application
}
Such things should be explained in my opinion quite early in the docs. They just provide playgrounds
👍 1
p
Yeah many people complain about the same. There is not a central place where you can check all compatible dependencies for all the different tools. And since everything is fresh, keeping backward compatibility is hard. Some devs have proposed creating a web where you could select a specific Gradle version catalog by filtering according to a language version or so
g
with chatgpt things got a little bit easier if the docs are not good and they do not take you step by step through everything without leaving obvious questions open
This is what I liked at the Rust docs they really take you step by step through everything if you start with the Rust book. With Koltin the initial steps are a little bit harder to take in my opinion. The Hello World is always the most difficult thing.
p
I believe JB relies on this workspace a lot. You can ask in #C09222272 if there is a specific LLM trained with data from this workspace and Google documentation and Apple documentation and such
g
thanks for the tip
👍 1