WordPress LMS for Web and mobile Forums [DEPRECATED] WPLMS Student App Failed to install 'cordova-plugin-file-transfer' Reply To: Failed to install 'cordova-plugin-file-transfer'

Reply To: Failed to install 'cordova-plugin-file-transfer'

Back to course

WordPress LMS for Web and mobile Forums [DEPRECATED] WPLMS Student App Failed to install 'cordova-plugin-file-transfer' Reply To: Failed to install 'cordova-plugin-file-transfer'

#13878

Wiji Hatmoko
Participant
ionic cordova build --release android  

[04:08:30]  lint finished in 9.66 s

Installing “cordova-plugin-file-transfer” for android

Failed to install ‘cordova-plugin-file-transfer’: CordovaError: Version of installed plugin: “[email protected]” does not satisfy dependency plugin requirement “[email protected]>=5.0.0”. Try –force to use installed plugin as dependency.

at C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:557:37

at _fulfilled (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)

at self.promiseDispatch.done (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)

at Promise.promise.promiseDispatch (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:749:13)

at C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:509:49

at flush (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:108:17)

at _combinedTickCallback (internal/process/next_tick.js:131:7)

at process._tickCallback (internal/process/next_tick.js:180:9)

Failed to restore plugin “cordova-plugin-file-transfer” from config.xml. You might need to try adding it again. Error: Version of installed plugin: “[email protected]” does not satisfy dependency plugin requirement “[email protected]>=5.0.0”. Try –force to use installed plugin as dependency.

ANDROID_HOME=C:\Users\Wiji Hatmoko\AppData\Local\Android\sdk

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_171

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_b5b2dwjvrf2q2q4f9ygwpbk61.run(C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\build.gradle:137)

BUILD FAILED

Total time: 3.646 secs

FAILURE: Build failed with an exception.

* Where:

Build file ‘C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\build.gradle’ line: 252

* What went wrong:

A problem occurred evaluating root project ‘android’.

> Could not get unknown property ‘ANDROID_SDK_VERSION’ for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

* Try:

Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

(node:8484) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:

FAILURE: Build failed with an exception.

* Where:

Build file ‘C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\build.gradle’ line: 252

* What went wrong:

A problem occurred evaluating root project ‘android’.

> Could not get unknown property ‘ANDROID_SDK_VERSION’ for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

* Try:

Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

at ChildProcess.whenDone (C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)

at emitTwo (events.js:126:13)

at ChildProcess.emit (events.js:214:7)

at maybeClose (internal/child_process.js:925:16)

at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

(node:8484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

(node:8484) [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.

[ERROR] An error occurred while running cordova build android –release (exit code 1).

C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia>

Copyright VibeThemes.