Have you ever stared at a terminal window, watching your carefully crafted Fastlane script spew out error after error, feeling like you’re playing a never-ending game of whack-a-mole with obscure technical messages? If you’re nodding along, then this post is for you!
What started as a simple fastlane playstore command to deploy my Android app turned into a 6-hour saga of cryptic errors! But don’t worry, I emerged victorious, and I’m sharing the entire journey so you can conquer these challenges faster than I did. 🎉
The Initial Headache: The Mysterious “Jlink” Error
My deployment journey kicked off with a frustrating error during the Java compilation phase:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> Could not resolve all files for configuration ':app:androidJdkImage'.
> Failed to transform core-for-system-modules.jar ...
> Error while executing process .../graalvm-jdk-17.0.11/Contents/Home/bin/jlink ...
What it meant: My Android Gradle Plugin (AGP) was struggling to build a custom JDK image using the jlink tool, specifically from my GraalVM JDK 17.0.11. This often points to an incompatibility or a corrupted JDK installation.
