19
Views
3
Comments
Solved
[File Plugin] Unable to build APK with error: No matching version found for cordova-plugin-file
Question
file-plugin
Mobile icon
Forge asset by OutSystems
Application Type
Mobile
Platform Version
11.25.0 (Build 41743)

I was unable to build my apk for both MABS 9 and 10, which I was still able to do 2 weeks ago.

There is no change with my file plugin, and there is no new updates for I know.

I am really not sure what happened. Can anyone please help me on this?




Screenshot 2024-05-09 182040.jpg
Screenshot 2024-05-09 182122.jpg
Screenshot 2024-05-09 182232.jpg
UserImage.jpg
Ricardo Silva
Solution

Hey @Victor Pok,

The error is unrelated to the supported File plugin. The issue is caused by `cordova-plugin-zeep` which appears to be requesting a version of the npm `cordova-plugin-file` package (which is owned by Apache) that doesn't exist (as it's an Outsystems version).

If you wish to reference the `6.0.2-OS5` version of the Outsystems-owned plugin, you should reference it via URL.

BR.

UserImage.jpg
Victor Pok

This is what I gathered so far. 

Is it possible for me to change the line in plugin.xml:

<dependency id=="cordova-plugin-file" version="=6.0.2-OS5 " /> 

to reference to url resource instead of running npm?

UserImage.jpg
Ricardo Silva
Solution

Hey @Victor Pok,

The error is unrelated to the supported File plugin. The issue is caused by `cordova-plugin-zeep` which appears to be requesting a version of the npm `cordova-plugin-file` package (which is owned by Apache) that doesn't exist (as it's an Outsystems version).

If you wish to reference the `6.0.2-OS5` version of the Outsystems-owned plugin, you should reference it via URL.

BR.

UserImage.jpg
Victor Pok

Thanks Ricardo.

I've changed the line in plugin.xml from:

<dependency id=="cordova-plugin-file" version="=6.0.2-OS5 " /> 

to:

<dependency id="cordova-plugin-file" url="https://github.com/OutSystems/cordova-plugin-file.git#6.0.2-OS5" />

and the APK managed to build. As shown below.






Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.