Hi,
Trying to build apks is failing (even for untouched projects that were builiding fine yesterday)
The headline fail message looks like this
UserError: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ā:app:compileDebugJava WithJavacā. > Compilation failed; see the compiler error out
I think i had this for a few minutes yesterdayā¦but figured it was an issue on the Voltbuilder side, because it came back without me changing anything.
Can someone take a look?
Thanks,
Neil
The problem is the fact you are building with engine 11 (Android 12) but now the plugin requires engine 12+ (Android 13). Unless you have a good reason to specify the android engine, I would suggest removing that line.
Looks like thereās a deeper can of wormsā¦
I have apps that use regular camera, camera-preview and barcode-scanner plugins.
It appears the latest version of Android (when not specifying engine) is having major issues with this.
Catch 22 is thisā¦
If I build for Android engine 11 then my build will work with the older version of camera-preview.
If I build for Android 13 (latest) there is a problem with permissions relating to various plugins vying for hardware control.
Thereās very little guidance on the finer points of āhooksā, ācustom-configsā,ābefore prepareā, āafter prepareā on Voltbuilder notes / NSB Appstudio, so Iām delving into Google / Stack Overflow etcā¦ but Iām going from hazy into blind on this.
Result is Iām into a cycle of trial and errorā¦
I was winging it with the uses-permission one by taking the error output and formulating it into the same style as the uses-feature oneā¦
Lucky hacking I guess!
So now, with the above, I can get all the different plugins (barcode, camera, camera-preview) working.
As well as NFC, Video Editing, Audio, OCR .
Never a dull moment with Google raising the bar every few months.
N