Unable to build the client application for the Android platform when the plugin "cordova-plugin-file-transfer" is used

Solution Verified - Updated -

Issue

  • Unable to build the client application for the Android platform when the plugin cordova-plugin-file-transfer is used
  • Problem creating the build from my domain and the build from same git commit was successful last week.
  • Android builds are failing in Studio
  • Error "error: package org.apache.cordova.file does not exist
    import org.apache.cordova.file.FileUtils" is shown when try to build a client application into RHMAP

Following the error found when the client application is built.

/data/fh-digger/data/tmp/b510c73c-3ba7-478b-a66d-2905d75da2d5/unzip/files/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:49: error: package org.apache.cordova.file does not exist
import org.apache.cordova.file.FileUtils;
                              ^
/data/fh-digger/data/tmp/b510c73c-3ba7-478b-a66d-2905d75da2d5/unzip/files/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:851: error: cannot find symbol
                        FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
                        ^
  symbol: class FileUtils
/data/fh-digger/data/tmp/b510c73c-3ba7-478b-a66d-2905d75da2d5/unzip/files/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:851: error: cannot find symbol
                        FileUtils filePlugin = (FileUtils) pm.getPlugin("File");

Environment

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.