# Ionic 2 Error Build Android

**URL:** <https://forum.ionicframework.com/t/ionic-2-error-build-android/121879>\
**Category:** ionic-v3\
**Created:** [February 19, 2018, 3:58am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879 "2018-02-19T03:58:47Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![satriantorobimo](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@satriantorobimo](https://forum.ionicframework.com/u/satriantorobimo)\
**Post date:** [February 19, 2018, 3:58am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/1 "2018-02-19T03:58:47Z")

</div>

Hello, i had some problem while i build android.

 ![gak%20jelas](https://global.discourse-cdn.com/ionicframework/original/3X/f/e/fe0e216a5da481ee36987b61770fe0168b4a55c3.jpg)

I already googling for this problem but not solved. Please help me im stuck about 1 week.

Thank you

---

<div class="post-metadata">

**Author:** ![Hardik1705](https://avatars.discourse-cdn.com/v4/letter/h/e95f7d/32.png) [@Hardik1705](https://forum.ionicframework.com/u/Hardik1705)\
**Post date:** [February 19, 2018, 6:56am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/2 "2018-02-19T06:56:42Z")

</div>

First Give me Ionic Info and copy build error in code tag…

---

<div class="post-metadata">

**Author:** ![addwebsolution](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/addwebsolution/32/120392_2.png) [@addwebsolution](https://forum.ionicframework.com/u/addwebsolution)\
**Post date:** [February 19, 2018, 7:08am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/3 "2018-02-19T07:08:23Z")

</div>

Hi, @satriantorobimo

you are facing the same issue. pls try solving this way,

> [@How to build Ionic for android?](https://forum.ionicframework.com/t/how-to-build-ionic-for-android/93770):
>
> Help, How to solve this error? Running app-scripts build: --iscordovaserve --externalIpRequired --nobrowser [11:37:08] build dev started … [11:37:08] clean started … [11:37:08] clean finished in 31 ms [11:37:08] copy started … [11:37:08] transpile started … [11:37:20] transpile finished in 11.83 s [11:37:20] preprocess started … [11:37:20] deeplinks started … [11:37:20] deeplinks finished in 32 ms [11:37:20] preprocess finished in 41 ms [11:37:20] webpack started … [11:3…

---

<div class="post-metadata">

**Author:** ![satriantorobimo](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@satriantorobimo](https://forum.ionicframework.com/u/satriantorobimo)\
**Post date:** [February 19, 2018, 7:17am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/4 "2018-02-19T07:17:48Z")

</div>

Hello @Hardik1705 , this is my ionic info :

```auto
cli packages: (C:\Users\bimos\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils : 1.19.1
    ionic (Ionic CLI) : 3.19.1

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 3.1.8
    Cordova Platforms : android 7.0.0
    Ionic Framework : ionic-angular 3.9.2

System:

    Android SDK Tools : 25.2.3
    Node : v7.7.3
    npm : 5.6.0
    OS : Windows 7

Environment Variables:

    ANDROID_HOME : C:\androidsdk

Misc:

    backend : legacy

```

and this is build error message :

```auto
Running app-scripts build: --platform android --target cordova
[14:17:55] build dev started ...
[14:17:55] clean started ...
[14:17:55] clean finished in 14 ms
[14:17:55] copy started ...
[14:17:55] deeplinks started ...
[14:17:56] deeplinks finished in 29 ms
[14:17:56] transpile started ...
[14:18:02] transpile finished in 6.21 s
[14:18:02] preprocess started ...
[14:18:02] preprocess finished in 1 ms
[14:18:02] webpack started ...
[14:18:02] copy finished in 7.17 s
[14:18:09] webpack finished in 7.27 s
[14:18:09] sass started ...
Without `from` option PostCSS could generate wrong source map and will not find
Browserslist config. Set it to CSS file path or to `undefined` to prevent this w
arning.
[14:18:11] sass finished in 1.93 s
[14:18:11] postprocess started ...
[14:18:11] postprocess finished in 11 ms
[14:18:11] lint started ...
[14:18:11] build dev finished in 15.81 s
> cordova build android
Android Studio project detected

ANDROID_HOME=C:\androidsdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_162
studio
Subproject Path: CordovaLib
Subproject Path: app
[14:18:17] lint finished in 5.75 s
Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --stat
us for details

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/
4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ClassLoaderRegistry using GlobalScopeServices.c
reateClassLoaderRegistry().

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org
(node:8388) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec
tion id: 1): Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/
4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ClassLoaderRegistry using GlobalScopeServices.c
reateClassLoaderRegistry().

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org
(node:8388) DeprecationWarning: Unhandled promise rejections are deprecated. In
the future, promise rejections that are not handled will terminate the Node.js p
rocess with a non-zero exit code.

```

---

<div class="post-metadata">

**Author:** ![Hardik1705](https://avatars.discourse-cdn.com/v4/letter/h/e95f7d/32.png) [@Hardik1705](https://forum.ionicframework.com/u/Hardik1705)\
**Post date:** [February 19, 2018, 8:03am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/5 "2018-02-19T08:03:42Z")

</div>

> [@satriantorobimo](#):
>
> What went wrong:  
> Unable to start the daemon process.

Go to Start-\>Control Panel-\>System-\>Advanced(tab)-\>Environment Variables-\>System Variables-\>New:  
Variable name: \_JAVA\_OPTIONS

Variable value: -Xmx512M

source link : - [bug: ionic 2 unable to start daemon process. · Issue #10970 · ionic-team/ionic-framework · GitHub](https://github.com/ionic-team/ionic/issues/10970)

For This Error Try this some links

> <https://stackoverflow.com/questions/44609531/gradle-sync-failed-unable-to-start-the-daemon-process>

---

<div class="post-metadata">

**Author:** ![satriantorobimo](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@satriantorobimo](https://forum.ionicframework.com/u/satriantorobimo)\
**Post date:** [February 19, 2018, 9:01am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/6 "2018-02-19T09:01:00Z")

</div>

> [@Hardik1705](#):
>
> -Xmx512M

Still getting this error

```auto
Running app-scripts build: --platform android --target cordova
[15:58:30] build dev started ...
[15:58:30] clean started ...
[15:58:30] clean finished in 5 ms
[15:58:30] copy started ...
[15:58:30] deeplinks started ...
[15:58:30] deeplinks finished in 26 ms
[15:58:30] transpile started ...
[15:58:34] transpile finished in 3.56 s
[15:58:34] preprocess started ...
[15:58:34] preprocess finished in 1 ms
[15:58:34] webpack started ...
[15:58:34] copy finished in 3.83 s
[15:58:41] webpack finished in 7.11 s
[15:58:41] sass started ...
Without `from` option PostCSS could generate wrong source map and will not find
Browserslist config. Set it to CSS file path or to `undefined` to prevent this w
arning.
[15:58:42] sass finished in 1.02 s
[15:58:42] postprocess started ...
[15:58:42] postprocess finished in 9 ms
[15:58:42] lint started ...
[15:58:42] build dev finished in 11.87 s
> cordova build android
Android Studio project detected

ANDROID_HOME=C:\androidsdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_162
studio
Subproject Path: CordovaLib
Subproject Path: app
[15:58:47] lint finished in 5.16 s
Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --stat
us for details

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/
4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ClassLoaderRegistry using GlobalScopeServices.c
reateClassLoaderRegistry().

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org
Picked up _JAVA_OPTIONS: -Xmx512M

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org
(node:8088) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec
tion id: 1): Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/
4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ClassLoaderRegistry using GlobalScopeServices.c
reateClassLoaderRegistry().

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org
Picked up _JAVA_OPTIONS: -Xmx512M

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org
Picked up _JAVA_OPTIONS: -Xmx512M
(node:8088) DeprecationWarning: Unhandled promise rejections are deprecated. In
the future, promise rejections that are not handled will terminate the Node.js p
rocess with a non-zero exit code.

```

Honestly, i already try this.

Please help me

---

<div class="post-metadata">

**Author:** ![Hardik1705](https://avatars.discourse-cdn.com/v4/letter/h/e95f7d/32.png) [@Hardik1705](https://forum.ionicframework.com/u/Hardik1705)\
**Post date:** [February 19, 2018, 9:09am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/7 "2018-02-19T09:09:47Z")

</div>

You are build App in Prod mode or normal mode ?

---

<div class="post-metadata">

**Author:** ![satriantorobimo](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@satriantorobimo](https://forum.ionicframework.com/u/satriantorobimo)\
**Post date:** [February 19, 2018, 9:13am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/8 "2018-02-19T09:13:43Z")

</div>

Im build in normal mode. So, if i create new project when im build android i get this error. Don`t know why i get this error.

@Hardik1705

---

<div class="post-metadata">

**Author:** ![Hardik1705](https://avatars.discourse-cdn.com/v4/letter/h/e95f7d/32.png) [@Hardik1705](https://forum.ionicframework.com/u/Hardik1705)\
**Post date:** [February 19, 2018, 9:38am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/9 "2018-02-19T09:38:29Z")

</div>

Read this Doc and check his path and stop gradle and try to build app.  
and also try this --no-daemon command line options

`ionic cordova build android --no-daemon`

[https://docs.gradle.org/4.1/userguide/gradle\_daemon.html](https://docs.gradle.org/4.1/userguide/gradle_daemon.html)

---

<div class="post-metadata">

**Author:** ![satriantorobimo](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@satriantorobimo](https://forum.ionicframework.com/u/satriantorobimo)\
**Post date:** [February 20, 2018, 1:30am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/10 "2018-02-20T01:30:59Z")

</div>

> [@Hardik1705](#):
>
> ionic cordova build android --no-daemon

Hey @Hardik1705 , this is when im using ionic cordova build android --no-daemon :

```auto
Running app-scripts build: --platform android --target cordova
[08:28:21] build dev started ...
[08:28:21] clean started ...
[08:28:21] clean finished in 5 ms
[08:28:21] copy started ...
[08:28:21] deeplinks started ...
[08:28:21] deeplinks finished in 26 ms
[08:28:21] transpile started ...
[08:28:25] transpile finished in 3.53 s
[08:28:25] preprocess started ...
[08:28:25] preprocess finished in 1 ms
[08:28:25] webpack started ...
[08:28:25] copy finished in 3.79 s
[08:28:31] webpack finished in 6.73 s
[08:28:31] sass started ...
Without `from` option PostCSS could generate wrong source map and will not find
Browserslist config. Set it to CSS file path or to `undefined` to prevent this w
arning.
[08:28:33] sass finished in 1.10 s
[08:28:33] postprocess started ...
[08:28:33] postprocess finished in 9 ms
[08:28:33] lint started ...
[08:28:33] build dev finished in 11.54 s
> cordova build android
Android Studio project detected

ANDROID_HOME=C:\androidsdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_162
studio
Subproject Path: CordovaLib
Subproject Path: app
[08:28:38] lint finished in 5.18 s
Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --stat
us for details

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.

This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/
4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ClassLoaderRegistry using GlobalScopeServices.c
reateClassLoaderRegistry().

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org
Picked up _JAVA_OPTIONS: -Xmx512M

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org
(node:7288) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec
tion id: 1): Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/
4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ClassLoaderRegistry using GlobalScopeServices.c
reateClassLoaderRegistry().

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org
Picked up _JAVA_OPTIONS: -Xmx512M

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org
Picked up _JAVA_OPTIONS: -Xmx512M
(node:7288) DeprecationWarning: Unhandled promise rejections are deprecated. In
the future, promise rejections that are not handled will terminate the Node.js p
rocess with a non-zero exit code.

```

And im trying using ionic cordova build android --verbose

```auto
[DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: 'F:\\NewIonic\\registerfa', local: false, binPath:
        'C:\\Users\\bimos\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ioni
c',
        libPath:
        'C:\\Users\\bimos\\AppData\\Roaming\\npm\\node_modules\\ionic\\dist\\ind
ex.js'
        }
[DEBUG] Daemon found (pid: 7024)
Running app-scripts build: --platform android --target cordova
[08:29:56] build dev started ...
[08:29:56] clean started ...
[08:29:56] clean finished in 5 ms
[08:29:56] copy started ...
[08:29:56] deeplinks started ...
[08:29:56] deeplinks finished in 28 ms
[08:29:56] transpile started ...
[08:30:00] transpile finished in 3.39 s
[08:30:00] preprocess started ...
[08:30:00] preprocess finished in 1 ms
[08:30:00] webpack started ...
[08:30:00] copy finished in 3.63 s
[08:30:05] webpack finished in 4.93 s
[08:30:05] sass started ...
Without `from` option PostCSS could generate wrong source map and will not find
Browserslist config. Set it to CSS file path or to `undefined` to prevent this w
arning.
[08:30:06] sass finished in 1.11 s
[08:30:06] postprocess started ...
[08:30:06] postprocess finished in 9 ms
[08:30:06] lint started ...
[08:30:06] build dev finished in 9.62 s
> cordova build android
Android Studio project detected

ANDROID_HOME=C:\androidsdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_162
studio
Subproject Path: CordovaLib
Subproject Path: app
[08:30:11] lint finished in 5.09 s
Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --stat
us for details

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.

This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/
4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ClassLoaderRegistry using GlobalScopeServices.c
reateClassLoaderRegistry().

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org
Picked up _JAVA_OPTIONS: -Xmx512M

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org
(node:10276) UnhandledPromiseRejectionWarning: Unhandled promise rejection (reje
ction id: 1): Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/
4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ClassLoaderRegistry using GlobalScopeServices.c
reateClassLoaderRegistry().

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org
Picked up _JAVA_OPTIONS: -Xmx512M

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org
Picked up _JAVA_OPTIONS: -Xmx512M
(node:10276) DeprecationWarning: Unhandled promise rejections are deprecated. In
 the future, promise rejections that are not handled will terminate the Node.js
process with a non-zero exit code.

```

Please help me @Hardik1705 im really stuck

Thank you

---

<div class="post-metadata">

**Author:** ![Hardik1705](https://avatars.discourse-cdn.com/v4/letter/h/e95f7d/32.png) [@Hardik1705](https://forum.ionicframework.com/u/Hardik1705)\
**Post date:** [February 20, 2018, 6:04am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/11 "2018-02-20T06:04:41Z")

</div>

> <https://stackoverflow.com/questions/30840526/gradle-could-not-create-service-of-type-initscripthandler-using-buildscopeservic>

and

> **[Android Studio: Unable to start the daemon process](https://discuss.gradle.org/t/android-studio-unable-to-start-the-daemon-process/12359/3)**
>
> I’ve been researching this error and I found the answer after searching a little bit and found the answer. I find the answer in the website: www.experts-exchange.com/… This problem occurs because of memory reserved for the IDE it is too low. so...

try this link i hope it’s time solve your problem…

---

<div class="post-metadata">

**Author:** ![satriantorobimo](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@satriantorobimo](https://forum.ionicframework.com/u/satriantorobimo)\
**Post date:** [February 26, 2018, 1:28am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/12 "2018-02-26T01:28:44Z")

</div>

Hello @Hardik1705 my problem is still stuck, please help me

---

<div class="post-metadata">

**Author:** ![cherry](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/cherry/32/149370_2.png) [@cherry](https://forum.ionicframework.com/u/cherry)\
**Post date:** [February 26, 2018, 1:56am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/13 "2018-02-26T01:56:18Z")

</div>

I struggled with the same issue!

My solution was:

Setup your **Environment Variables**. (If you already setted up those ignore it).

## 

**ANDROID\_HOME**  
 ![grafik](https://global.discourse-cdn.com/ionicframework/original/3X/a/e/ae0f32e63576e538032ca29786d37713ffb9fac5.png)

## 

**ANDROID\_SDK** (same path as android\_home)  
 ![grafik](https://global.discourse-cdn.com/ionicframework/original/3X/e/5/e585f4f833a998677b323f0609d084e7dcdf63d9.png)

## 

**Path** (from java)  
 ![grafik](https://global.discourse-cdn.com/ionicframework/original/3X/f/1/f1c18d872a94b3072cd257ef7d52b94f4f589d03.png)

## 

**_!REMOVE!_**  
Variable name: \_JAVA\_OPTIONS

Variable value: -Xmx512M

## 

* * *

**Next thing you want to check out is this link.**

> **[Gradle Build Tool](https://gradle.org/)**
>
> Accelerate developer productivity. Gradle helps teams build, automate and deliver better software, faster.

## 

_ **How you install it on windows:** _

Use **Chocolatey**

[https://chocolatey.org/install](https://chocolatey.org/install)

**Just type this into your cmd**

```auto

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

```

It will automaticly download and install all files.

## 

## 

Next thing is now we want to install Gradle.

**Type this into your cmd**

`choco install gradle`

Test it out:

`gradle -v`

* * *

I gues that is all you have todo I hope I didn’t forgot anything please post your result!

## 

**Good luck** 🐦🙂

---

<div class="post-metadata">

**Author:** ![morenoCami](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@morenoCami](https://forum.ionicframework.com/u/morenoCami)\
**Post date:** [June 3, 2018, 4:06am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/14 "2018-06-03T04:06:19Z")

</div>

This fixed my issue, thank you!

---

<div class="post-metadata">

**Author:** ![parthsingh2212](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@parthsingh2212](https://forum.ionicframework.com/u/parthsingh2212)\
**Post date:** [September 25, 2020, 8:21pm UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/15 "2020-09-25T20:21:39Z")

</div>

Thank You so much… It worked for me

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 8:54pm UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android/121879/16 "2021-07-19T20:54:06Z")

</div>

Closed on July 19, 2021, 8:54pm UTC


