14
Views
2
Comments
[Camera Plugin] Error (plugin version incompatibility) when generating mobile application
Forge component by OutSystems R&D
43
Published on 10 Dec 2020
Application Type
Mobile
Service Studio Version
11.10.10 (Build 38781)
Platform Version
11.7.2 (Build 5749)

Today I updated the Camera Plugin to the lastest version since I was getting the error below. After updating the Camera Plugin I still get the same error message. I did check the extensibility configuration of the Camera Plugin and it is stating 4.2.0-OS3 as mentioned in the error message, so this should be ok. Also all the references are up to date. What am I missing here?




When generating my mobile application (Android and iOS) I keep getting the error: 

Error generating IBIS Mobile (iOS): Generation failed due to plugin version incompatibility with MABS. We recommend that you review the following plugin(s) and retry building the app:
cordova-plugin-camera version 4.0.3-OS5 must be equal or greater than 4.2.0-OS3

Full logs states the following:

[2021-02-16T08:25:54.871Z] [INFO] [Validation] [AppShield] Validating AppShield for the given build request

[2021-02-16T08:25:54.871Z] [INFO] [Validation] [AppShield] Obtaining plugin list

[2021-02-16T08:25:54.871Z] [INFO] [Validation] [AppShield] Obtaining application preferences

[2021-02-16T08:25:54.871Z] [INFO] [Validation] [AppShield] Verifying if the AppShield plugin is available in the build request

[2021-02-16T08:25:54.870Z] [INFO] [Validation] [Plugins] Validating plugins for the given build request

[2021-02-16T08:25:55.020Z] [INFO] [Validation] [Plugins] Obtaining plugin versions

[2021-02-16T08:25:55.021Z] [INFO] [Validation] [Plugins] Applying plugin validations

[2021-02-16T08:25:55.022Z] [ERROR] [Validation] [Plugins] cordova-plugin-camera version 4.0.3-OS5 must be equal or greater than 4.2.0-OS3

[2021-02-16T08:25:54.871Z] [INFO] [Validation] [ApplicationPreferences] Validating build structure for the given build request

[2021-02-16T08:25:54.982Z] [INFO] [Validation] [ApplicationPreferences] Obtaining application preferences

[2021-02-16T08:25:54.982Z] [INFO] [Validation] [ApplicationPreferences] Are preferences valid? true

[2021-02-16T08:25:57.257Z] [INFO] [Validation] Gathering validation results

[2021-02-16T08:25:57.258Z] [ERROR] [Validation] Generation failed due to plugin version incompatibility with MABS. We recommend that you review the following plugin(s) and retry building the app:


cordova-plugin-camera version 4.0.3-OS5 must be equal or greater than 4.2.0-OS3


 


Rank: #968

It seems to be a weird thing..

In the screenshot you can see it is using MABS version 6.3. When checking the configuration of the iOS mobile application the MABS version uses Always use the latest version available (and I think that is 7). I changed it to use a specific version and selected 6.3 and after that it works.. In my opinion this is strange since in service center it states that 6.3 is already used.


And to confirm this is a weird thing. I did not change the Android application and this still generates the error. As you can see the iOS application did generate succesfully. I guess this is some kind of visual bug?

Staff
Rank: #1855

Hi @Bart Nooijens 

The MABS version that you show in your screenshot from the Service Center dashboard (6.3) points to the latest MABS version that builded successfully, which is in fact 6.3.

To build the application using MABS version 7 you need to use, as the error message states, version 4.2.0-OS3 of the Camera Plugin, or higher. Are you sure that in your extensability configurations you have that version set instead of the older version, 4.0.3-OS5?

Rank: #84974

@Alexandre Jacinto I was having same problem as above so I updated to the latest Camera Plugin (6.2.0).  At that point, iOS would build but Android would not.  I have MABS set to automatically use the latest version and you can see the successful iOS build was with MABS 7.0:

Android building with MABS 7.0 fails with the above error.

I reverted the Camera Plugin to 6.1.0 and forced MABS 6.3 for both iOS and Android and was able to generate both platforms again.

Something's broken in 6.2.0 with regards to Android.