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.
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