> For the complete documentation index, see [llms.txt](https://shadowrocket-wiki.gitbook.io/shadowrocket/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shadowrocket-wiki.gitbook.io/shadowrocket/android/v2rayng.md).

# V2rayNG Android 教程

## v2rayNG 使用教程

本教程介绍 v2rayNG 安卓客户端下载安装、订阅配置、节点连接以及常见问题解决方法。

***

## v2rayNG下载

[点击下载客户端](https://github.com/2dust/v2rayNG/releases)

### 什么是 v2rayNG？

v2rayNG 是 Android 平台常用的代理客户端，支持 V2Ray 和 Xray 内核。

支持协议：

* VMess
* VLESS
* Shadowsocks
* Trojan
* Socks

主要功能：

* 支持订阅链接
* 自动更新节点
* 节点测速
* 规则分流
* DNS 设置
* VPN 模式连接

***

### 下载 v2rayNG

下载安装 Android 版本客户端。

建议：

* 使用官方渠道下载
* 避免安装未知修改版本

***

## v2rayNG 使用教程

### 首次打开设置

第一次启动 v2rayNG：

1. 允许 VPN 权限
2. 允许后台运行
3. 完成初始化设置

系统弹出：

```
连接请求
```

点击：

```
确定
```

***

## 添加订阅链接

打开 v2rayNG：

点击右上角：

```
菜单
```

选择：

```
订阅设置
```

***

### 添加订阅地址

点击：

```
+
```

填写：

#### 备注名称

例如：

```
我的订阅
```

#### 地址

填写你的订阅链接：

```
你的订阅地址
```

保存。

***

## 更新订阅

返回主页。

点击右上角菜单：

```
更新订阅
```

等待完成。

成功后会显示：

* 节点名称
* 节点地区
* 节点信息

***

## 选择节点

返回主界面。

点击：

```
服务器列表
```

选择需要使用的节点。

可以根据：

* 延迟
* 地区
* 网络速度

选择合适节点。

***

## 测试节点延迟

选择节点后：

点击：

```
测试配置延迟
```

查看响应时间。

参考：

| 延迟        | 状态 |
| --------- | -- |
| <100ms    | 优秀 |
| 100-200ms | 良好 |
| 200-500ms | 一般 |
| >500ms    | 较慢 |

***

## 开启 VPN 连接

选择节点。

点击底部：

```
启动按钮
```

首次启动：

系统会提示：

```
允许建立 VPN 连接
```

点击：

```
确定
```

连接成功后：

状态显示：

```
运行中
```

***

## 路由设置

进入：

```
设置
 ↓
路由
```

常用模式：

### 绕过大陆地址

适合日常使用：

```
绕过大陆地址
```

效果：

* 国内网站直连
* 海外网站代理

***

### 全局代理

所有流量通过代理：

```
全局
```

适合测试。

***

### 规则模式

根据规则自动选择：

```
规则
```

推荐长期使用。

***

## DNS 设置

进入：

```
设置
 ↓
DNS
```

可以设置：

```
223.5.5.5

1.1.1.1

8.8.8.8
```

用于解决：

* DNS 污染
* 域名解析异常

***

## v2rayNG 常见问题

### 1. 订阅无法更新

检查：

* 订阅地址是否正确
* 网络是否正常
* 服务是否有效

解决：

1. 删除旧订阅
2. 重新添加
3. 再次更新

***

### 2. 节点无法连接

尝试：

1. 更换节点
2. 更新订阅
3. 检查服务器状态
4. 重启客户端

***

### 3. 已连接但是无法访问

检查：

* 是否选择正确节点
* 路由模式
* DNS 设置
* VPN 权限

***

### 4. 手机锁屏后断开

建议开启：

Android 设置：

```
应用管理
 ↓
v2rayNG
 ↓
电池
 ↓
允许后台运行
```

关闭：

```
省电限制
```

***

## 推荐设置

### 开启自动更新订阅

建议：

```
自动更新订阅
```

保持节点最新。

***

### 开启分应用代理

如果需要：

进入：

```
设置
 ↓
分应用代理
```

选择需要代理的应用。

***

## 图文教程

<figure><img src="/files/h5BfZ8zvt4wLnX9W754D" alt=""><figcaption></figcaption></figure>

***

## 总结

v2rayNG 是 Android 平台功能完善的网络客户端。

通过添加订阅、更新节点、选择服务器以及配置路由，可以快速完成安卓设备配置。

建议：

* 定期更新订阅
* 使用稳定节点
* 保持客户端版本更新


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://shadowrocket-wiki.gitbook.io/shadowrocket/android/v2rayng.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
