VoltBuilder AndroidX Error

Earlier today I tried to build an Android debug version on Voltbuilder and got an AndroidX error stating I need to add <preference name="AndroidXEnabled" value="true" /> to the config.

I have added the <preference name="AndroidXEnabled" value="true" /> but the build still fails with a new error:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:compileDebugJavaWithJavac’.