I am Getting error in Building Android apk

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to Command-Line Interface Reference in the Gradle documentation.

WARNING: The option setting ‘android.enableResourceOptimizations=false’ is deprecated.

Which Solar2D version are you using? Also, Gradle 9.0? I see the latest Gradle version is 8.10.2. Am I missing something?