# 设备开发调试

在将应用发布给用户之前，在真实手机/雷鸟Air设备上进行测试是软件开发生命周期中必不可少的一步。本主题主要介绍如何设置雷鸟Air以在真实设备上测试和调试应用程序。

一般来说，通过USB数据线连接安卓和雷鸟Air设备是测试应用的基本方式。此外，您可以使用Android Debug Bridge (ADB) 对 Android 应用程序执行高级测试和调试。

#### **通过USB连接手机**

1\.  您必须配备一个版本为Android8.0及以上的手机，并打开开发者模式，通过USB数据线将其连接到计算机，当手机弹出USB调试提示时，点击允许。

2\.  要验证连接，请打开Unity项目，然后在菜单栏上点击File>Build Settings。

3\.  在Platform列表中，选择Android，然后单击Switch Paltform。如果平台已设置为Android，请跳至下一步。

![](https://testopen.rayneo.cn/media/8ffd213428301830752b7860cc90d6a0.png)

4\.  在Run Device列表中，选择对应的设备即可。如果您没有在列表中看到Android手机，请点击刷新。

![](https://testopen.rayneo.cn/media/7ca65e027410df42141d56aac86fe6f4.png)

5\.  单击Build And Run，以在Android手机上运行该应用程序。

6\.  如果您看到程序成功在Android上运行，请进行下一步操作。


---

# Agent Instructions: 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:

```
GET https://rayneo.gitbook.io/rayneo-devdoc/air-xi-lie/unity-kai-fa/kuai-su-kai-shi/she-bei-kai-fa-tiao-shi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
