Hi.
I’ve created a ionic 2 app. When I want to add android platform taking this error.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not download gradle.jar (com.android.tools.build:gradle:2.2.0)
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.0/gradle-2.2.0.jar'.
> Failed to move file 'C:\Users\bsinternet\AppData\Local\Temp\gradle_download4260088656124726700bin' into filestore at 'C:\Users\bsinternet\.gradle\caches\modules-2\files-2.1\com.android.tools.build\gradle\2.2.0\e15d0f8c5ca4d152ec0ef5654b47d31c899ea22e\gradle-2.2.0.jar'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Failed to install 'cordova-plugin-console':Error: cmd: Command failed with exit code 1
at ChildProcess.whenDone (C:\mobile\kodent\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:852:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
Error: cmd: Command failed with exit code 1
How can I fix it?