ERROR: Build error

I’m trying to build the application from the terminal and something goes wrong. Do you know how to solve it? I’m trying to find a solution and I can not: /. It would be very useful if you can give me a solution. Thank you!

I leave what the console tells me at the moment when I try to compile:

`PS C:\Users\Antonella\Documents\ionic\departamentos\myApp> cordova build android
ANDROID_HOME=C:\Users\Antonella\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_131
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_9rj1snx8sjovo6jip1pg57n3i.run(C:\Users\Antonella\Documents\ionic\departamentos\myApp\platforms\android\build.gradle:137)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint UP-TO-DATE
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:prepareOrgApacheCordovaCordovaLib623DebugLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:compileDebugJavaWithJavac
:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
C:\Users\Antonella\Documents\ionic\departamentos\myApp\platforms\android\src\com\synconset\cordovahttp\CordovaHttpDownload.java:18: error: package org.apache.cordova.file does not exist
import org.apache.cordova.file.FileUtils;
^
C:\Users\Antonella\Documents\ionic\departamentos\myApp\platforms\android\src\com\synconset\cordovahttp\CordovaHttpDownload.java:19: error: package org.apache.cordova.file does not exist
import org.apache.cordova.file.FileUtils;
^
C:\Users\Antonella\Documents\ionic\departamentos\myApp\platforms\android\src\com\synconset\cordovahttp\CordovaHttpDownload.java:50: error: cannot find symbol
JSONObject fileEntry = FileUtils.getFilePlugin().getEntryForFile(file);
^
symbol: variable FileUtils
location: class CordovaHttpDownload
Note: C:\Users\Antonella\Documents\ionic\departamentos\myApp\platforms\android\src\org\apache\cordova\splashscreen\SplashScreen.java uses or overrides a deprecated API.
:compileDebugJavaWithJavac FAILED

BUILD FAILED

Total time: 10.14 secs
Note: Recompile with -Xlint:deprecation for details.
3 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:compileDebugJavaWithJavac’.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    (node:7620) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
    C:\Users\Antonella\Documents\ionic\departamentos\myApp\platforms\android\src\com\synconset\cordovahttp\CordovaHttpDownload.java:18: error: package org.apache.cordova.file does not exist
    import org.apache.cordova.file.FileUtils;
    ^
    C:\Users\Antonella\Documents\ionic\departamentos\myApp\platforms\android\src\com\synconset\cordovahttp\CordovaHttpDownload.java:19: error: package org.apache.cordova.file does not exist
    import org.apache.cordova.file.FileUtils;
    ^
    C:\Users\Antonella\Documents\ionic\departamentos\myApp\platforms\android\src\com\synconset\cordovahttp\CordovaHttpDownload.java:50: error: cannot find symbol
    JSONObject fileEntry = FileUtils.getFilePlugin().getEntryForFile(file);
    ^
    symbol: variable FileUtils
    location: class CordovaHttpDownload
    Note: C:\Users\Antonella\Documents\ionic\departamentos\myApp\platforms\android\src\org\apache\cordova\splashscreen\SplashScreen.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    3 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:compileDebugJavaWithJavac’.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    (node:7620) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process
    with a non-zero exit code.`