[OneSignal Plugin] Cant Build apk after adding OneSignal Component

[OneSignal Plugin] Cant Build apk after adding OneSignal Component

  
Forge Component
(7)
Published on 4 Jul by OutSystems R&D
7 votes
Published on 4 Jul by OutSystems R&D

Hey,

After I added OneSignal Plugin to my app I can't build an apk anymore.

I receive the following error:

Error: Error compiling Cordova plugin: org/apache/cordova/filetransfer/FileTransfer.java:60: error: package org.apache.cordova.file does not exist.


I did some research in google and found this:

https://github.com/Microsoft/cordova-plugin-code-push/issues/320


Seems like it is a cordova version problem.

Do you guys know anything about it?


Tks,

RR

Solution

Hello, Raphael,

I just tested requesting a build with the OneSignal plugin included and it was generated successfully. That being said, let's consider your case and the errors evidence you found.

This hints at a problem with another plugin altogether: File Transfer. Like the Code Push plugin issue you shared, it seems this plugin is incompatible with Cordova Android version 6.1.2, which we use on our mobile apps.

Bear in mind this component is not marked as supported, so OutSystems does not actively maintain it. That being said, this issue was already reported on the plugin's forums, with a solution being posted by another developer.

Could you try it and let us know how it went?

Best regards,

Carlos Simões

Solution

Thank You Carlos!


That solved the problem!

Awesome! Glad to know it was solved!

Best regards,

Carlos Simões