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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content