Still struggling with camera error 20 on Android

I’m using cordova-plugin-camera (no version set), have the various permissions set for it, but get error 20 when the camera tries to launch.

I’ve searched the posts here and see there was an issue with the plugin (discussed in August last year). I’ve tried a variant of the plugin someone mentioned (cordova-plugin-camera-flossy) but it wouldn’t build with that. Also tried @cocodintech/cordova-plugin-camera, which compiled but didn’t fix the error.

Any help much appreciated!

Using android engine 10.1.2 and targetSdkVersion 34.

Note: this used to work fine, but it’s been a while since I last updated it, so have had to update target SDK.

Note 2: Error Code 20 on Android with Plugin v7.0.0 · Issue #875 · apache/cordova-plugin-camera · GitHub seems to describe it, with the suggestion it’s fixed in 8.0.1-dev, but Voltbuilder doesn’t seem to want to build it with that version reference.

Can you try using the latest version (13) of the Android engine? Engine 10.1.2 does not support SDK 34.

Many thanks, that seemed to have got it working again! I’m now facing another issue but I think that’s related to saving it rather than the camera itself so I’ll mark your reply as the solution.