Ionic phonegap build error with org.apache.cordova.file


#1

ionic phone gap build displaying error with org.apache.cordova.file.

Error :

BUILD FAILED

Total time: 1.436 secs
Error: /project/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/project/src/com/synconset/CordovaHttpDownload.java:20: error: package org.apache.cordova.file does not exist
import org.apache.cordova.file.FileUtils;
                              ^
/project/src/com/synconset/CordovaHttpDownload.java:49: error: cannot find symbol
                JSONObject fileEntry = FileUtils.getFilePlugin().getEntryForFile(file);
                                       ^
  symbol:   variable FileUtils
  location: class CordovaHttpDownload
Note: /project/src/org/apache/cordova/splashscreen/SplashScreen.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

My plugins list:

cordova-plugin-device 2.0.2 "Device"                   
cordova-plugin-file 6.0.1 "File"                                                                                       
cordova-plugin-http 1.2.0 "SSL Pinning"                                                                                 
cordova-plugin-ionic-keyboard 2.0.5 "cordova-plugin-ionic-keyboard"                 
cordova-plugin-ionic-webview 1.1.19 "cordova-plugin-ionic-webview"                    
cordova-plugin-native-spinner 1.1.3 "Native Spinner"         
cordova-plugin-splashscreen 5.0.2 "Splashscreen"             
cordova-plugin-whitelist 1.3.3 "Whitelist"