Giter Club home page Giter Club logo

Comments (5)

123dma avatar 123dma commented on September 27, 2024

same problem here.

BUILD FAILED

Total time: 2.197 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.
Warning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest.

/project/src/com/synconset/cordovahttp/CordovaHttpDownload.java:18: error: package org.apache.cordova.file does not exist
import org.apache.cordova.file.FileUtils;
^
/project/src/com/synconset/cordovahttp/CordovaHttpDownload.java:49: error: cannot find symbol
JSONObject fileEntry = FileUtils.getFilePlugin().getEntryForFile(file);
^
symbol: variable FileUtils
location: class CordovaHttpDownload
Note: Some input files use or override 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 ':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.
    at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:877:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

from cordova-plugin-advanced-http.

123dma avatar 123dma commented on September 27, 2024

hello, I found the solution
1 - update your phonegap app version to last version

from cordova-plugin-advanced-http.

softshape avatar softshape commented on September 27, 2024

123dma, where exactly it should be updated?

from cordova-plugin-advanced-http.

123dma avatar 123dma commented on September 27, 2024

Hello, try to add in your config.xml this options

"plugin name="cordova-plugin-device" source="npm" spec="~1.1.6" />
plugin name="cordova-plugin-dialogs" source="npm" spec="~1.3.3" />
plugin name="cordova-plugin-file" source="npm" spec="~4.3.3" />
plugin name="cordova-plugin-inappbrowser" source="npm" spec="~1.7.1" />
plugin name="cordova-plugin-network-information" source="npm" spec="~1.3.3" />

remove the older´s

I did here and had sucess

from cordova-plugin-advanced-http.

silkimen avatar silkimen commented on September 27, 2024

This problem is caused by the fact that this plugin depends on "cordova-plugin-file" >= v2.0.0, which causes cordova to load the latest version of this plugin during cordova prepare when there is no pinned version.

Basically, this is no problem, but when you are running a cordova version < 6.3.0, current version of the file plugin is not compatible and it's not installed during cordova prepare. That's the reason why it's also mentioned in the log.

You can prevent this issue by adding following line in your config.xml (pinning the version of file plugin to 4.3.3):

<plugin name="cordova-plugin-file" spec="4.3.3" />

from cordova-plugin-advanced-http.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.