Hi,
I tried to do this command line : ionic cordova build android and have this error message
FAILURE: Build failed with an exception.
- What went wrong:
Could not resolve all files for configuration ‘:app:debugCompileClasspath’.
Could not find support-v4.jar (com.android.support:support-v4:26.1.0).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/26.1.0/support-v4-26.1.0.jar
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info
or --debug option to get more log output. -
Get more help at https://help.gradle.org
BUILD FAILED in 4s
26 actionable tasks: 1 executed, 25 up-to-date
(node:34260) UnhandledPromiseRejectionWarning: Error: /Users/cpuser/desktop/vivendiSafe/myApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
- What went wrong:
Could not resolve all files for configuration ‘:app:debugCompileClasspath’.
Could not find support-v4.jar (com.android.support:support-v4:26.1.0).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/26.1.0/support-v4-26.1.0.jar
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. -
Get more help at https://help.gradle.org
BUILD FAILED in 4s
at ChildProcess.whenDone (/Users/cpuser/desktop/vivendiSafe/myApp/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:34260) 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:34260) [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.
Somebody can help me ?
Thx