I don't know what i did but my build fail until 3 hours on android and I can't fix it ... There is the log :
ANDROID_HOME= C:\Users\User\AppData\Local\Android\Sdk JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121 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_bxct3n5fn9ey9qgc57qreulsp.run(C:\Users\User\MyProject\application\platforms\android\build.gradle:143)
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.
WARNING: Module 'com.android.support:support-v4:26.1.0' depends on one or more Android Libraries but is a jar
FAILURE: Build failed with an exception.
- What went wrong: A problem occurred configuring root project 'android'.
Could not find support-v4.jar (com.android.support:support-v4:26.1.0). Searched in the following locations: BUILD FAILED
Total time: 1.569 secs
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. cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'android'.
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.
I use (edited :)cordova-android@6.4.0 and cordova 8.1.2(cordova-lib@8.1.1)
Hope someone can help me...