> For the complete documentation index, see [llms.txt](https://onestore-dev.gitbook.io/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onestore-dev.gitbook.io/dev/chi/tools/alc/upgrading-from-unity-to-alc-sdk-v2.md).

# Upgrading from Unity to ALC SDK v2

### 为V1 → V2 转换，更新Library文件 <a href="#id-zai-unity-zhong-sheng-ji-dao-alcsdkv2-wei-v1v2-zhuan-huan-geng-xin-library-wen-jian" id="id-zai-unity-zhong-sheng-ji-dao-alcsdkv2-wei-v1v2-zhuan-huan-geng-xin-library-wen-jian"></a>

#### 删除V1中使用的Library文件 <a href="#id-zai-unity-zhong-sheng-ji-dao-alcsdkv2-shan-chu-v1-zhong-shi-yong-de-library-wen-jian" id="id-zai-unity-zhong-sheng-ji-dao-alcsdkv2-shan-chu-v1-zhong-shi-yong-de-library-wen-jian"></a>

| Assets > Plugins > Android | <ul><li>sdk-alc-v1.0.0.aar</li><li>alc-android-library-v1.0.0.aar</li></ul> |
| -------------------------- | --------------------------------------------------------------------------- |
| Assets > StreamingAssets   | <ul><li>global-appstores.json</li></ul>                                     |

#### 为使用V2 ，添加所需的Library <a href="#id-zai-unity-zhong-sheng-ji-dao-alcsdkv2-wei-shi-yong-v2-tian-jia-suo-xu-de-library" id="id-zai-unity-zhong-sheng-ji-dao-alcsdkv2-wei-shi-yong-v2-tian-jia-suo-xu-de-library"></a>

| Assets > Plugins > Android | <ul><li>sdk-alc-v2.0.0.aar</li><li>sdk-auth-v1.0.2.aar</li><li>sdk-base-v1.0.3.aar</li><li>sdk-configuration-v1.0.0.aar</li><li>alc\_adapter-v1.1.0.aar</li></ul> |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |

#### Unity 中，添加 Project Settings > Publishing Settings 的 Custome Build 环境。 <a href="#id-zai-unity-zhong-sheng-ji-dao-alcsdkv2unity-zhong-tian-jia-projectsettingspublishingsettings-de-cu" id="id-zai-unity-zhong-sheng-ji-dao-alcsdkv2unity-zhong-tian-jia-projectsettingspublishingsettings-de-cu"></a>

为登录、更新、安装模块，需要添加以下内容。

添加项目

* Custom Main Manifest
* Custom Main Gradle Template
* Custom Launcher Gradle Template

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

#### AndroidManifest.xml中添加 \<queries> <a href="#id-zai-unity-zhong-sheng-ji-dao-alcsdkv2androidmanifest.xml-zhong-tian-jia-queries" id="id-zai-unity-zhong-sheng-ji-dao-alcsdkv2androidmanifest.xml-zhong-tian-jia-queries"></a>

以下两种情况，请参考ONE store 公告进行设置&#x20;

* [Target SDK 版本设置为30(OS 11) 以上](https://dev.onestore.co.kr/devpoc/support/news/noticeView.omp?pageNo=4\&noticeId=32968\&viewPageNo=\&searchValue=)
* [Target SDK 版本设置为31(OS 12) 以上](https://dev.onestore.co.kr/devpoc/support/news/noticeView.omp?pageNo=1\&noticeId=33072\&viewPageNo=\&searchValue=)

Assets > Plugins > Android > AndroidManifest.xml

需要添加以下queries。


---

# 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://onestore-dev.gitbook.io/dev/chi/tools/alc/upgrading-from-unity-to-alc-sdk-v2.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.
