Hi,
We've just upgrade the cordova-camera-plugin in order to support the iOS privacy descriptors. Without these, you are not able to upload the app to Apple App Store.
The fix for this was added in version 2.3.0 of the plugin ref release notes:
cordova-plugin-camera/RELEASENOTES.md at master · apache/cordova-plugin-camera · GitHub
Version 2.3.0 of the cordova-camera-plugin builds ok for Android, but the latest version 2.3.1 fails.
The message displayed in the web interface is:
Some official plugins have to be updated if using PhoneGap >= 4.0.0. Please upgrade the version of any plugins that may include the following file: CordovaUri.java
The error in the build log is:
:generateDebugSources
:compileDebugJava/project/src/org/apache/cordova/camera/CordovaUri.java:78: error: cannot find symbol
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
The source code of the class which fails building is
cordova-plugin-camera/CordovaUri.java at master · apache/cordova-plugin-camera · GitHub
The reason why it fails, is that the compiler at phonegap build fails to find the symbol Build.VERSION_CODES.M
This is an attribute in Android SDK which was added in API level 23, see Build.VERSION_CODES | Android Developers
To fix this, Phonegap build must include the newest libraries for Android SDK