[OneSignal Plugin] Cant Build apk after adding OneSignal Component

Forge Component
Published on 2018-10-19 by OutSystems R&D
9 votes
Published on 2018-10-19 by OutSystems R&D


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:


Seems like it is a cordova version problem.

Do you guys know anything about it?




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


Thank You Carlos!

That solved the problem!

Awesome! Glad to know it was solved!

Best regards,

Carlos Simões