You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/setup/windows.md
+33-8Lines changed: 33 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ prev: /setup
4
4
next: /guide/creating-a-project
5
5
contributors:
6
6
- rigor789
7
+
- herefishyfish
7
8
---
8
9
9
10
## Setting up Windows for Android
@@ -18,10 +19,24 @@ Setting up the Android development environment can be daunting if you are new to
18
19
19
20
### Installing Node
20
21
21
-
To install **Node** we recommend using a node version manager, such as [nvm-windows](https://github.com/coreybutler/nvm-windows), [nvs](https://github.com/jasongin/nvs) or any other node version manager you prefer. In these docs we will be using **nvm-windows**, but feel free to use a different node version manager.
22
+
To install **Node** we recommend using a node version manager, such as [nvm-windows](https://github.com/coreybutler/nvm-windows), [nvs](https://github.com/jasongin/nvs) or any other node version manager you prefer. In these docs we will be using [nvm-windows](https://github.com/coreybutler/nvm-windows), but feel free to use a different node version manager.
22
23
23
-
1. Follow the [install instructions in the nvm-windows repository](https://github.com/coreybutler/nvm-windows#installation--upgrades). We recommend using the installer, however if you have a more advanced understanding of your needs you may also go for the manual installation instead.
24
-
2. Run and follow the `nvm-setup.exe` instructions.
24
+
1. Install [nvm-windows](https://github.com/coreybutler/nvm-windows) using one of the following methods:
2. After installation, open a new Command Prompt and verify:
37
+
```bash
38
+
nvm version
39
+
```
25
40
3. Once the installation is complete, open a new Command Prompt and verify you can run `nvm ls`.
26
41
4. Install the latest Node release with:
27
42
```bash
@@ -46,7 +61,7 @@ If any of the above failed, we recommend checking out the [Microsoft Docs for Se
46
61
To install a **JDK** (using the prebuilt OpenJDK binaries from [Adoptium](https://adoptium.net/)) open an Administrator Command Prompt (right click and select "Run as Administrator") and run the following command:
47
62
48
63
```bash
49
-
choco install -y temurin17
64
+
choco install -y temurin21
50
65
```
51
66
52
67
Once installed, you might need to add it to your `Path`. First, check if you need to add it to your `Path` by opening a new Command Prompt and running the following:
@@ -60,10 +75,10 @@ If you see a version number printed, you may skip this step. Otherwise, you will
60
75
1. Search for "**Edit the system environment variables**" in Windows Search and select
61
76
2. Click on "**Environment variables...**" in the bottom corner
62
77
3. Under the "**User variables for...**" select the **Path** variable and click **Edit...**
63
-
4. Click **New** and add the **JDK binaries folder** path to the list.
64
-
The default location is
78
+
4. Click **New** and add the **JDK `bin` folder path** to the list.
79
+
The **JDK** location may vary depending on the version you have installed.
You may need to restart your terminal for changes to apply.
@@ -141,6 +156,16 @@ ns doctor android
141
156
142
157
If you see **No issues were detected** then you have successfully set up your system.
143
158
159
+
If you're using Chocolatey and prefer not to open a new terminal, you can refresh your environment variables in the current PowerShell session by running:
After refreshing, run the `ns doctor` command again to confirm everything is working as expected.
167
+
168
+
144
169
Lastly, you will also want to [set up an android device](/guide/running#enable-usb-debugging-on-android-devices) or [emulator](/guide/running#android-emulators).
0 commit comments