1e41f4b71Sopenharmony_ci# Sdk-Upgrade-Guide
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## Overview
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ciThis topic walks you through on how to upgrade your existing SDK and make necessary adaptations to your application.
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci## Upgrade and Adaptation Process
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci![SDK-GuideMap](figures/SDK-GuideMap.png)
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ciThe entire SDK upgrade and adaptation process is divided into five phases:
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci1. Upgrading the SDK: Obtain the latest SDK version and installing the SDK.
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci2. Viewing behavior changes: Read changelogs.
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci3. Verifying the environment: Use DevEco Studio of the latest version for build and verification.
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci4. Making upgrade adaptations: Use the Suap tool to upgrade your application.
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci5. Testing: Use the image of the latest version to test the functions of the upgraded application and new project.
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci### Upgrading the SDK
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ciYou can upgrade the SDK in either of the following ways:
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci- Trigger automatic upgrade in DevEco Studio.
28e41f4b71Sopenharmony_ci- Download the latest SDK version from the official website and upgrade it.
29e41f4b71Sopenharmony_ci
30e41f4b71Sopenharmony_ciFor example, to obtain the SDK version of OpenHarmony-4.0-Beta2, visit [Acquiring Source Code from Mirrors](OpenHarmony-v4.0-beta2.md#acquiring-source-code-from-mirrors).
31e41f4b71Sopenharmony_ci
32e41f4b71Sopenharmony_ciFor details on how to use the full SDK, see [Switching to Full SDK](../application-dev/faqs/full-sdk-switch-guide.md).
33e41f4b71Sopenharmony_ci
34e41f4b71Sopenharmony_ciAfter the SDK upgrade, update the **compileSdkVersion** and **compatibleSdkVersion** configuration items in the **build-profile.json5** file of DevEco Studio.
35e41f4b71Sopenharmony_ci
36e41f4b71Sopenharmony_ci![arkts-basic-grammar](figures/compileSdkVersion.png)
37e41f4b71Sopenharmony_ci
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ci### Viewing Behavior Changes
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ciChangelogs are always provided along with each version release on the official website. From these changelogs, you can know the behavior changes and incompatible changes after the upgrade, as well as the change impact and adaptation guide.
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ciChangelogs are archived in the [changelogs](changelogs) folder.
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ci### Verifying the Environment
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ciAfter you switch to the full SDK of the latest version, an error will be reported when incompatible APIs are being built in DevEco Studio. You are advised to use the latest DevEco Studio for build and verification.
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ciTo obtain the latest DevEco Studio version, see [Acquiring the Application Development Tool (HUAWEI DevEco Studio)](../device-dev/get-code/gettools-ide.md#acquiring-the-application-development-tool-huawei-deveco-studio).
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ci### Making Upgrade Adaptations
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ciIncompatible API changes may cause application build failures or event function problems. To quickly adapt to the latest SDK, you are advised to use the Suap tool to upgrade and adapt your application. The Suap tool generates an update report on DevEco Studio. The report contains the changes in the SDK of the new version and the code location. You can click **Locate Code** on DevEco Studio to access the corresponding page and modify your code.
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ciTo obtain the Suap tool, search for OpenHarmony SDK Upgrade Assistant in the DevEco Studio plug-in market.
56e41f4b71Sopenharmony_ci
57e41f4b71Sopenharmony_ci### Testing
58e41f4b71Sopenharmony_ci
59e41f4b71Sopenharmony_ciAfter the SDK upgrade and adaptation, download the image of the latest version and perform function tests on the device to ensure that the adaptation is successful. You are advised to use the emulator provided by DevEco Studio to perform the test.
60