Plugins *-http do not compile


#1

Why do cocoon’s team use plugins which does not compile on their site? !!! Cocoon’s team do you have QA team?

Cocoon show error:

COMPILER ERROR: 

/workspace/platforms/android/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.
/workspace/platforms/android/src/com/synconset/cordovahttp/CordovaHttpDownload.java:18: error: package org.apache.cordova.file does not exist
import org.apache.cordova.file.FileUtils;
                              ^
/workspace/platforms/android/src/com/synconset/cordovahttp/CordovaHttpDownload.java:48: error: cannot find symbol
                JSONObject fileEntry = FileUtils.getFilePlugin().getEntryForFile(file);
                                       ^
  symbol:   variable FileUtils
  location: class CordovaHttpDownload
Note: /workspace/platforms/android/src/com/ludei/usersplash/android/UserSplashPlugin.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.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

CORDOVA LOG: 

repare] adding plugin com.ludei.installlocation.android@1.0.0
e[36m20180906T101937 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usericon.android@1.0.1
e[36m20180906T101937 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usersplash.android@1.0.2
e[36m20180906T101937 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-advanced-http-2@*
e[36m20180906T101940 [DEBUG] AndroidBuilder -e[39m [build]
Warning: File /.android/repositories.cfg could not be loaded.
e[36m20180906T101941 [DEBUG] AndroidBuilder -e[39m [build] create certs folder
e[36m20180906T101941 [DEBUG] AndroidBuilder -e[39m [build] keystore
e[36m20180906T101941 [DEBUG] AndroidBuilder -e[39m [build] create build.json
e[36m20180906T101941 [DEBUG] AndroidBuilder -e[39m [build] call cordova
ANDROID_HOME=/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux
JAVA_HOME=/usr/lib/jvm/default-java
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_cxie1mxx8okqjlfibjwfylh8o.run(/workspace/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
:preReleaseBuild UP-TO-DATE
:checkReleaseManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseShaders
:CordovaLib:compileReleaseShaders
:CordovaLib:generateReleaseAssets
:CordovaLib:mergeReleaseAssets
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:processReleaseManifest
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
:CordovaLib:incrementalReleaseJavaCompilationSafeguard
:CordovaLib:compileReleaseJavaWithJavac
:CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
:CordovaLib:mergeReleaseJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
:CordovaLib:bundleRelease
:prepareOrgApacheCordovaCordovaLib623ReleaseLibrary
:prepareReleaseDependencies
:compileReleaseAidl
:compileReleaseRenderscript
:generateReleaseBuildConfig
:generateReleaseResValues
:generateReleaseResources
:mergeReleaseResources
:processReleaseManifest
:processReleaseResources
:generateReleaseSources
:incrementalReleaseJavaCompilationSafeguard
:compileReleaseJavaWithJavac
:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/workspace/platforms/android/src/com/synconset/cordovahttp/CordovaHttpDownload.java:18: error: package org.apache.cordova.file does not exist
import org.apache.cordova.file.FileUtils;
                              ^
/workspace/platforms/android/src/com/synconset/cordovahttp/CordovaHttpDownload.java:48: error: cannot find symbol
                JSONObject fileEntry = FileUtils.getFilePlugin().getEntryForFile(file);
                                       ^
  symbol:   variable FileUtils
  location: class CordovaHttpDownload
Note: /workspace/platforms/android/src/com/ludei/usersplash/android/UserSplashPlugin.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.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
:compileReleaseJavaWithJavac FAILED

BUILD FAILED

Total time: 16.544 secs
e[91m20180906T102004 [ERROR] AndroidBuilder -e[39m { Error: /workspace/platforms/android/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.
/workspace/platforms/android/src/com/synconset/cordovahttp/CordovaHttpDownload.java:18: error: package org.apache.cordova.file does not exist
import org.apache.cordova.file.FileUtils;
                              ^
/workspace/platforms/android/src/com/synconset/cordovahttp/CordovaHttpDownload.java:48: error: cannot find symbol
                JSONObject fileEntry = FileUtils.getFilePlugin().getEntryForFile(file);
                                       ^
  symbol:   variable FileUtils
  location: class CordovaHttpDownload
Note: /workspace/platforms/android/src/com/ludei/usersplash/android/UserSplashPlugin.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.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    at ChildProcess.whenDone (/workspace/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:961:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
  stderr:
   'Note: Some input files use or override a deprecated API.\nNote: Recompile with -Xlint:deprecation for details.\n/workspace/platforms/android/src/com/synconset/cordovahttp/CordovaHttpDownload.java:18: error: package org.apache.cordova.file does not exist\nimport org.apache.cordova.file.FileUtils;\n                              ^\n/workspace/platforms/android/src/com/synconset/cordovahttp/CordovaHttpDownload.java:48: error: cannot find symbol\n                JSONObject fileEntry = FileUtils.getFilePlugin().getEntryForFile(file);\n                                       ^\n  symbol:   variable FileUtils\n  location: class CordovaHttpDownload\nNote: /workspace/platforms/android/src/com/ludei/usersplash/android/UserSplashPlugin.java uses or overrides a deprecated API.\nNote: Recompile with -Xlint:deprecation for details.\n2 errors\n\nFAILURE: Build failed with an exception.\n\n* What went wrong:\nExecution failed for task \':compileReleaseJavaWithJavac\'.\n> Compilation failed; see the compiler error output for details.\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\n',
  stdout:
   'The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.\n\tat build_cxie1mxx8okqjlfibjwfylh8o.run(/workspace/platforms/android/build.gradle:137)\nThe JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.\nIncremental java compilation is an incubating feature.\nThe TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.\n:preBuild UP-TO-DATE\n:preReleaseBuild UP-TO-DATE\n:checkReleaseManifest\n:CordovaLib:preBuild UP-TO-DATE\n:CordovaLib:preReleaseBuild UP-TO-DATE\n:CordovaLib:checkReleaseManifest\n:CordovaLib:prepareReleaseDependencies\n:CordovaLib:compileReleaseAidl\n:CordovaLib:compileReleaseNdk UP-TO-DATE\n:CordovaLib:compileLint\n:CordovaLib:copyReleaseLint UP-TO-DATE\n:CordovaLib:mergeReleaseShaders\n:CordovaLib:compileReleaseShaders\n:CordovaLib:generateReleaseAssets\n:CordovaLib:mergeReleaseAssets\n:CordovaLib:mergeReleaseProguardFiles\n:CordovaLib:packageReleaseRenderscript UP-TO-DATE\n:CordovaLib:compileReleaseRenderscript\n:CordovaLib:generateReleaseResValues\n:CordovaLib:generateReleaseResources\n:CordovaLib:packageReleaseResources\n:CordovaLib:processReleaseManifest\n:CordovaLib:generateReleaseBuildConfig\n:CordovaLib:processReleaseResources\n:CordovaLib:generateReleaseSources\n:CordovaLib:incrementalReleaseJavaCompilationSafeguard\n:CordovaLib:compileReleaseJavaWithJavac\n:CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).\n:CordovaLib:processReleaseJavaRes UP-TO-DATE\n:CordovaLib:transformResourcesWithMergeJavaResForRelease\n:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease\n:CordovaLib:mergeReleaseJniLibFolders\n:CordovaLib:transformNative_libsWithMergeJniLibsForRelease\n:CordovaLib:transformNative_libsWithSyncJniLibsForRelease\n:CordovaLib:bundleRelease\n:prepareOrgApacheCordovaCordovaLib623ReleaseLibrary\n:prepareReleaseDependencies\n:compileReleaseAidl\n:compileReleaseRenderscript\n:generateReleaseBuildConfig\n:generateReleaseResValues\n:generateReleaseResources\n:mergeReleaseResources\n:processReleaseManifest\n:processReleaseResources\n:generateReleaseSources\n:incrementalReleaseJavaCompilationSafeguard\n:compileReleaseJavaWithJavac\n:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).\n:compileReleaseJavaWithJavac FAILED\n\nBUILD FAILED\n\nTotal time: 16.544 secs\n',
  code: 1 }