Closed jakoss closed 3 years ago
I'd recommend using a newer JDK. Java 8 is a very old runtime (released in 2014!). Android tooling has lagged in this respect for quite some time, but I've been using the most recent long term support version, JDK 11 (released in 2018), in my day job for quite some time without issue.
I chose to target JDK 11 with this tool to move forward instead of languishing in the 2014 era of the JVM bytecode spec. I'm happy to leave this issue open for a while for discussion.
I was not aware that I can do that 😂
I know that android studio 4.2 is going jdk 11 by default, but I was sure I need newer (unstable) gradle plugin for that. Will experiment, thanks.
@jzbrooks Are you developing on windows by any chance? If yes - what JDK do you recommend?
I use macOS personally with this homebrew tap, but I'm sure there are adoptopenjdk packages on chocolatey as well. You should be able to install any JDK 11, set it as your java home, and run your build (if you're using Gradle daemons, then be sure to run gradlew --stop
so that Gradle starts new daemons that will pick up your new environment.
You should also be able to configure Studio to use the same JDK as well through module settings.
I found AdoptOpenJDK on chocolatey and it's working great, thanks!
No problem. I also made a note in the readme about the compatibility b3a3f012b241e30b4a5b614dc63ae2e110aeb262.
Describe the bug I have error
when running ':app:shrinkVectorArtwork'
I'm using build-in JDK, more info:
Expected behavior Successful compression of all files
Desktop (please complete the following information):
Additional context Add any other context about the problem here.