Comments (5)
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.
hello, I found the solution
1 - update your phonegap app version to last version
from cordova-plugin-advanced-http.
123dma, where exactly it should be updated?
from cordova-plugin-advanced-http.
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.
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)
- [Bug] Apparent bug in serializeArray() HOT 1
- [[__NSArrayM insertObject:atIndex:]: object cannot be nil] [Cordova-Ios] App crash with SSL pinned active HOT 4
- How do I make downloaded files viewable in the iPhone's Files and Photos apps? HOT 1
- [Bug] sendRequest doesn't contain success/failure types HOT 1
- [Bug] [platform] deviceready has not fired after 5 seconds HOT 1
- documentation issue - broken link
- Pinned certificate works on Android but not iOS HOT 2
- [Bug] [android] cordova-plugin-file dependency installs version incompatible with cordova-android on Meteor
- Is there a new release planned? HOT 2
- HttpResponseType blob type empty data, even though the request is successful
- Dynamic Data
- [Bug] [Android] TLS connection could not be established: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. HOT 5
- uploadFIle doesn't send parameters
- [Bug] SSL pinning is not working for both iOS and Android HOT 3
- BSF Cordova Ecosystem Crowdfunding Plan
- Android & iOS Certificate Pinning
- [Android] No installed provider supports this key: com.android.org.bouncycastle.jcajce.PKCS12Key HOT 1
- how can we do ssl pinning in ionic capacitor react app?
- [Bug] [Android] Response Header Encode
- pinning intermediate certificate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-advanced-http.