Ionic builld failed

C:\Users\Ray\Ionic\Exchange\platforms\android\cordova>build
ANDROID_HOME=C:\Users\Ray\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_66
Running: C:\Users\Ray\Ionic\Exchange\platforms\android\gradlew cdvBuildDebug -b C:\Users\Ray\Ionic\Exchange\platforms\android\build.gradle -Dorg.gradle.daemon=true
:preBuild
:compileDebugNdk UP-TO-DATE
:preDebugBuild
:checkDebugManifest
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:preBuild
:CordovaLib:preDebugBuild
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:geRayateDebugBuildConfig UP-TO-DATE
:CordovaLib:geRayateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:geRayateDebugResValues UP-TO-DATE
:CordovaLib:geRayateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:geRayateDebugSources UP-TO-DATE
:CordovaLib:compileDebugJava
C:\Users\Ray\Ionic\Exchange\platforms\android\CordovaLib\src\org\apache\cordova\CordovaClientCertRequest.java:25: error: cannot find symbol
import android.webkit.ClientCertRequest;
^
symbol: class ClientCertRequest
location: package android.webkit
C:\Users\Ray\Ionic\Exchange\platforms\android\CordovaLib\src\org\apache\cordova\CordovaClientCertRequest.java:32: error: cannot find symbol
private final ClientCertRequest request;
^
symbol: class ClientCertRequest
location: class CordovaClientCertRequest
C:\Users\Ray\Ionic\Exchange\platforms\android\CordovaLib\src\org\apache\cordova\CordovaClientCertRequest.java:34: error: cannot find symbol
public CordovaClientCertRequest(ClientCertRequest request) {
^
symbol: class ClientCertRequest
location: class CordovaClientCertRequest
C:\Users\Ray\Ionic\Exchange\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemWebChromeClient.java:251: error: cannot find symbol
public boolean onShowFileChooser(WebView webView, final ValueCallback<Uri> filePathsCallback, final WebChromeClient.FileChooserParams fileChooserParams) {
^
symbol: class FileChooserParams
location: class WebChromeClient
C:\Users\Ray\Ionic\Exchange\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemWebViewClient.java:29: error: cannot find symbol
import android.webkit.ClientCertRequest;
^
symbol: class ClientCertRequest
location: package android.webkit
C:\Users\Ray\Ionic\Exchange\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemWebViewClient.java:116: error: cannot find symbol
public void onReceivedClientCertRequest (WebView view, ClientCertRequest request)
^
symbol: class ClientCertRequest
location: class SystemWebViewClient
C:\Users\Ray\Ionic\Exchange\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemWebChromeClient.java:249: error: cannot find symbol
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
^
symbol: variable LOLLIPOP
location: class VERSION_CODES
C:\Users\Ray\Ionic\Exchange\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemCookieManager.java:37: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
^
symbol: variable LOLLIPOP
location: class VERSION_CODES
C:\Users\Ray\Ionic\Exchange\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemCookieManager.java:38: error: cannot find symbol
cookieManager.setAcceptThirdPartyCookies(webView, true);
^
symbol: method setAcceptThirdPartyCookies(WebView,boolean)
location: variable cookieManager of type CookieManager
C:\Users\Ray\Ionic\Exchange\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemCookieManager.java:59: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
^
symbol: variable LOLLIPOP
location: class VERSION_CODES
C:\Users\Ray\Ionic\Exchange\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemCookieManager.java:60: error: cannot find symbol
cookieManager.flush();
^
symbol: method flush()
location: variable cookieManager of type CookieManager
C:\Users\Ray\Ionic\Exchange\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemWebChromeClient.java:250: error: method does not override or implement a method from a supertype
@Override
^
C:\Users\Ray\Ionic\Exchange\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemWebChromeClient.java:257: error: cannot find symbol
Uri result = WebChromeClient.FileChooserParams.parseResult(resultCode, intent);
^
symbol: variable FileChooserParams
location: class WebChromeClient
C:\Users\Ray\Ionic\Exchange\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemWebViewClient.java:114: error: method does not override or implement a method from a supertype
@Override
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
14 errors
:CordovaLib:compileDebugJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:CordovaLib:compileDebugJava’.

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.

BUILD FAILED

Total time: 4.706 secs

C:\Users\Ray\Ionic\Exchange\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c “C:\Users\Ray\Ionic\Exchange\platforms\android\gradlew cdvBuildDebug -b C:\Users\Ray\Ionic\Exchange\platforms\android\build.gradle -Dorg.gradle.daemon=true”

Same problem. Do you manage to find a solution?

Yes, the problem was with Nodjs v5.1. So I reverted back to v4.4.2 and everything worked like a charm.