---
# System prepended metadata

title: How to setup dev environment

---

# How to setup dev environment

## Install `Chocolatey`, Windows Package Manager

* Run `PowerShell` as administrator
* in `PowerShell` type this command:
```
Get Execution-Policy
```

If the command returns "Restricted" run:
```
Set Execution-Policy AllSigned
```
or 
```
Set-ExecutionPolicy Bypass -Scope Process
```

* Now run:
```
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
```

:::    success
Chocolatey is now installed.
:::

## Install Node.js, Python and Java JDK

Now that chocolatey has been installed, it is easier to install those things.
Run this command:
``` 
choco install -y nodejs.install python2 jdk8
```

Follow the steps of the installations.

:::info
If you have already installed Node on your system, **make sure** it is Node 8.3 or newer. If you already have a JDK on your system, **make sure** it is version 8 or newer.
:::

## Install Android Studio

#### 1. Install Android studio and SDK

First [Download Android Studio](https://developer.android.com/studio/index.html)

Follow installation instructions.
When you get to chose STANDARD or CUSTOM installation, chose **CUSTOM**. As follow.

![](https://i.imgur.com/Y9Zhkfr.png)


Go next until you have to choose components to install. Make sure to check the checkboxes as follow.

![](https://i.imgur.com/oCXAaoT.png)


Continue the step until the installation is running.

:::    success
Android Studio installation complet.
:::

---

We now need to install the specific SDK.
When Android Studio has started, go to `configure` and `Sdk Manager` in the bottom right corner

![](https://i.imgur.com/xkYnTgu.png)


Check the `Android 9 (Pie)` checkbox, then **show details** (bottom right corner) and make sure to check 
* `Android SDK Platform 28`
* `Intel x86 Atom_64 System Image` or `Google APIs Intel x86 Atom System Image` (both if you want to)

See below:

![](https://i.imgur.com/44q0zws.png)


Then, go to **SDK Tools** tab on top, beside SDK Platforms, click **show details** (bottom right corner) and in the "Android SDK Build-Tools", check **28.0.3**.

![](https://i.imgur.com/JsGxCmO.png)


Finally click **Apply** to install the SDK, and accept all licenses.

:::    success
Congrats the SDK has been installed.
:::

#### 2. Setup Android Studio environnment variables

While the sdk is installing you can go next. 

We would now tell Windows where to find our Android Studio HOME, we will then add some environement variables to the system.

Go to the Windows **searchbar** and type **"Variables"**, you should see this.
![](https://i.imgur.com/FvGIcaa.png)

Go there.

Click "**Variables d'environnement**" and then "**Nouvelle**" to create the `ANDROID_HOME` variable. Let's see my drawing skills..

![](https://i.imgur.com/pnNDC8U.png)
![](https://i.imgur.com/QADkqhK.png)

<br/>

> By default the sdk is installed here:
::: info
C:\Users\USERNAME\AppData\Local\Android\Sdk
:::

Once this is done, click the **Path** variable and press "**Modifier**". 
Click "**Nouveau**" and add the path to platform-tools.

![](https://i.imgur.com/II3oBrs.png)

<br/>

> By default here:
::: info
C:\Users\USERNAME\AppData\Local\Android\Sdk\platform-tools
::: 

:::    success

:confetti_ball:   Congrats, you're done.  :confetti_ball: 

Everything should be setup correctly. 
We are now ready to make our first application and I will show you how in out first session, see you there !
:::