Running the “createDistributable” task fails on Windows with:
Copy code
Execution failed for task ':composeApp:checkRuntime'.
> Failed to check JDK distribution: 'jpackage.exe' is missing
JDK distribution path: C:\Program Files\Android\Android Studio\jbr
I’m using from IntelliJ (CE), not Android Studio. Any idea how I can fix this? I don’t see this JDK anywhere in project settings, where I have it set to Adoptium 21.
a
Alexander Maryanovsky
01/14/2024, 5:42 PM
It’s set as the gradle runtime
💯 1
r
rob42
01/14/2024, 5:43 PM
Of course, writing this out caused me to immediately find the issue. For some reason, the JDK used by gradle (as defined in IntelliJ settings) is set to GRADLE_LOCAL_JAVA_HOME, which is pointing to Android Studio.
Super annoying that this would happen though — installing Android Studio shouldn’t mess up gradle for IntelliJ