PierfrancescoSoffritti / android-youtube-player

YouTube Player library for Android and Chromecast, stable and customizable.
https://pierfrancescosoffritti.github.io/android-youtube-player/
MIT License
3.44k stars 765 forks source link

Set MaxMetaspaceSize to 512m to fix Dokka Gradle build step #1170

Closed talklittle closed 2 months ago

talklittle commented 2 months ago

Without this configuration, the :core:dokkaJavadoc Gradle build step was failing/hanging with error:

Exception in thread "DefaultDispatcher-worker-7" java.lang.OutOfMemoryError: Metaspace
The Daemon will expire after the build after running out of JVM Metaspace.
The project memory settings are likely not configured or are configured to an insufficient value.
The daemon will restart for the next build, which may increase subsequent build times.
These settings can be adjusted by setting 'org.gradle.jvmargs' in 'gradle.properties'.
The currently configured max heap space is '512 MiB' and the configured max metaspace is '256 MiB'.
For more information on how to set these values, visit the user guide at https://docs.gradle.org/8.0/userguide/build_environment.html#configuring_jvm_memory
To disable this warning, set 'org.gradle.daemon.performance.disable-logging=true'.
Daemon will be stopped at the end of the build after running out of JVM Metaspace

For whatever reason the build worked on master but not current dev branch.

Specifically I was running $ ./gradlew :core:publishToMavenLocal

talklittle commented 2 months ago

Thanks, updated.

PierfrancescoSoffritti commented 2 months ago

Merged, thank you!

talklittle commented 2 months ago

Thanks for all the feedback on these pull requests, and for the library!