# Ionic 2 android platform error

**URL:** <https://forum.ionicframework.com/t/ionic-2-android-platform-error/74307>\
**Category:** ionic-v3\
**Created:** [December 24, 2016, 7:33pm UTC](https://forum.ionicframework.com/t/ionic-2-android-platform-error/74307 "2016-12-24T19:33:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsinternet](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@bsinternet](https://forum.ionicframework.com/u/bsinternet)\
**Post date:** [December 24, 2016, 7:33pm UTC](https://forum.ionicframework.com/t/ionic-2-android-platform-error/74307/1 "2016-12-24T19:33:41Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [December 25, 2016, 11:47pm UTC](https://forum.ionicframework.com/t/ionic-2-android-platform-error/74307/2 "2016-12-25T23:47:17Z")

</div>

My first instinct is that you’ve either got a permission problem or a full disk.
