Getting the samples working and trying to experime...
# declarative-gradle
j
Getting the samples working and trying to experiment with them. Couple things I'm noticing: • Docs say the examples should work with JDK >= 17, but toolchain is set to 17 everywhere so only JDK 17 actually works with it. Removing toolchain allows for newer JDKs to be used while targeting older source. • Adding
-XX:ReservedCodeCacheSize=256m
to Gradle JVM args causes a build failure:
Copy code
A problem occurred configuring project ':android-util'.
> Collection contains no element matching the predicate.
That codecache issue seems to only happen for me at exactly 256m, so weird
p
You need Java >= 17 to run the samples. The samples themselves use the 17 toolchain which should get automatically provisionned if running with > 17 and used for compilation and testing. Did you see an issue running the samples with say 21?
That jvm arg issue is weird indeed.