If there’s any experts out there for this problem, I’d thank you a lot!
I’ve got a big problem with trying to port something to mobile. You see, I’m trying to make my FNF Psych Engine support mobile. Only problem is… Gradle’s features don’t seem to support it. It just keeps giving me this error every time I try to compile the game, and I have no idea how to fix it!
I know this likely won’t be up anyone’s alley because it’s a question related to an FNF mod, but… I literally do not know what is happening right now! And I thought this place was full of Gradle experts that could help me out on this.
Cuz lime build android and lime test android uses Gradle to work. It even installs and unzips it automatically! What do I do for it to run bug-free? Install a different version of Gradle? Just… if you’ve got the answer, please tell me it.
Please never share screenshots of text anywhere unless you want to show more than the text like colors or IDE annotations. Screenshots are harder to read especially on mobile, much harder to copy from, and nearly impossible to search for.
Install a different version of Gradle?
You should usually never install any Gradle version at all.
Any sane build should contain the 4 Gradle wrapper files which control the exact version the build is designed for and known working with and care for auto-provisioning and using that exact version.
And build that does not have the wrapper files imho has a build bug.
The problem you have shown is because the build you try to run is not compatible with Gradle 9.
The Groovy DSL build script in the error message tries to use the SwingBuilder of Groovy to show some GUI, that is in the groovy-swing artifact which was included in the Groovy DSL build script classpath before Gradle 9.0.0, but is not available anymore starting from Gradle 9.0.0.
That build script needs to be changed to either not use the SwingBuilder or to add the groovy-swing artifact as build script dependency.
Assuming that you did not write that build script yourself but the tools you use generate the build, you should open a bug report to those tools, that they use Gradle 9 but at the same time produce build scripts that do not work with Gradle 9.
So, versions above 9.0.0 don’t like this is what you’re saying? Then what would be the closest version under 9.0.0? I can set the Project.xml to use that instead.
Again, are you authoring that build script, or is the tool you are using generating that build script?
If it is you, you can also add the missing dependency.
If your tool is generating that build
report that the generated build is not compatible with Gradle 9+ but does not ensure it is not used
check the tools documentation which Gradle version it supports
If the tool generates the build for you, and you are not touching it, maybe you should simply use the default value instead of configuring anything, so that you have a situation tested by that tool’s developers.
That exact failure works up to 8.14.4 currently. But who knows what else will fail it even silently just not work as intended by that tool.