Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm committed Jun 28, 2024
1 parent fc3dab0 commit 75ff043
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 208 deletions.
2 changes: 0 additions & 2 deletions cndocs/_getting-started-linux-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ React Native 需要通过环境变量来了解你的 Android SDK 装在什么路
```shell
# 如果你不是通过Android Studio安装的sdk,则其路径可能不同,请自行确定清楚。
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/emulator
```
Expand Down
2 changes: 0 additions & 2 deletions cndocs/_getting-started-macos-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ React Native 需要通过环境变量来了解你的 Android SDK 装在什么路
# 如果你不是通过Android Studio安装的sdk,则其路径可能不同,请自行确定清楚
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
```

Expand Down
7 changes: 2 additions & 5 deletions cndocs/_getting-started-windows-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,12 @@ C:\Users\你的用户名\AppData\Local\Android\Sdk

你需要关闭现有的命令符提示窗口然后重新打开,这样新的环境变量才能生效。

#### 4. 把一些工具目录添加到环境变量 Path
#### 4. 把工具目录添加到环境变量 Path

打开`控制面板` -> `系统和安全` -> `系统` -> `高级系统设置` -> `高级` -> `环境变量`,选中**Path**变量,然后点击**编辑**。点击**新建**然后把这些工具目录路径添加进去:platform-tools、emulator、tools、tools/bin
打开`控制面板` -> `系统和安全` -> `系统` -> `高级系统设置` -> `高级` -> `环境变量`,选中**Path**变量,然后点击**编辑**。点击**新建**然后把以下工具目录路径添加进去:platform-tools

```powershell
%ANDROID_HOME%\platform-tools
%ANDROID_HOME%\emulator
%ANDROID_HOME%\tools
%ANDROID_HOME%\tools\bin
```

## 创建新项目
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ React Native 需要通过环境变量来了解你的 Android SDK 装在什么路
```shell
# 如果你不是通过Android Studio安装的sdk,则其路径可能不同,请自行确定清楚。
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/emulator
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ React Native 需要通过环境变量来了解你的 Android SDK 装在什么路
# 如果你不是通过Android Studio安装的sdk,则其路径可能不同,请自行确定清楚
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,12 @@ C:\Users\你的用户名\AppData\Local\Android\Sdk

你需要关闭现有的命令符提示窗口然后重新打开,这样新的环境变量才能生效。

#### 4. 把一些工具目录添加到环境变量 Path
#### 4. 把工具目录添加到环境变量 Path

打开`控制面板` -> `系统和安全` -> `系统` -> `高级系统设置` -> `高级` -> `环境变量`,选中**Path**变量,然后点击**编辑**。点击**新建**然后把这些工具目录路径添加进去:platform-tools、emulator、tools、tools/bin
打开`控制面板` -> `系统和安全` -> `系统` -> `高级系统设置` -> `高级` -> `环境变量`,选中**Path**变量,然后点击**编辑**。点击**新建**然后把以下工具目录路径添加进去:platform-tools

```powershell
%ANDROID_HOME%\platform-tools
%ANDROID_HOME%\emulator
%ANDROID_HOME%\tools
%ANDROID_HOME%\tools\bin
```

## 创建新项目
Expand Down
Loading

0 comments on commit 75ff043

Please sign in to comment.