Skip to content

Commit 7bbd2f9

Browse files
bgrand-chrigor789
andauthored
docs(android): add note for adoptopensdk error (#10)
* docs(android): add note for adoptopensdk error * refactor: surround link in quotes * Update environment-setup.md * Update environment-setup.md * Update environment-setup.md * Update environment-setup.md Co-authored-by: Igor Randjelovic <[email protected]>
1 parent 06b1f7a commit 7bbd2f9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

environment-setup.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,14 @@ If you need to work with multiple versions of node, you may skip installing node
117117
To install a **JDK** run the following command:
118118

119119
```cli
120-
# todo: check if it works with latest jdk
121-
brew install --cask adoptopenjdk
120+
brew tap AdoptOpenJDK/openjdk
121+
brew install --cask adoptopenjdk15
122122
```
123123

124+
:::warning Note
125+
The default `adoptopenjdk16` does not currently work with the gradle plugin version NativeScript uses, so we recommend sticking with an older version for now.
126+
:::
127+
124128
Setting up the Android development environment can be daunting if you are new to Android development, however following the next steps carefully will get you up and running in no time.
125129

126130
[Download and install Android Studio](https://developer.android.com/studio). In the installation wizard make sure to have the following components selected (the list should appear if you select **custom** options):
@@ -278,10 +282,13 @@ May need to install `ffi`
278282
```cli
279283
sudo arch -x86_64 gem install ffi
280284
```
285+
281286
Then
287+
282288
```cli
283289
arch -x86_64 pod install
284290
```
291+
285292
### Linux + Android
286293

287294
You will need Node, NativeScript CLI (command line interface), Android Studio and a JDK (java development kit).

0 commit comments

Comments
 (0)