Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
REPRO:
1. Create a cordova project
2. Add android platform
3. Add a plugin that depends on NDK e.g.:
λ cordova plugin add cordova-plugin-crosswalk-webview
4. Build cordova:
λ cordova build android
ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_60
embedded
FAILURE: Build failed with an exception.
- Where:
Build file 'D:\apps\app\platforms\android\build.gradle' line: 185
- What went wrong:
A problem occurred evaluating root project 'android'.
> Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration.
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 8.628 secs
ERROR building one of the platforms: Error code 1 for command: cmd with args: /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"
You may not have the required environment or OS to build this project
Error: Error code 1 for command: cmd with args: /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"