React Native for OpenHarmony SDK Version Configuration Guide

New Projects

For newly created projects, use the following configuration:

{
  "compatibleSdkVersion": "5.0.0(12)",
  "targetSdkVersion": "6.0.0(20)"
}
  • compatibleSdkVersion: The minimum SDK version required for the application to run. Setting it to 5.0.0(12) ensures the application can be installed and run properly on devices with API 12 and above. The API version of the device system must not be lower than this configured value.
  • targetSdkVersion: The target SDK version for the application. For system-side API version isolation changes, the application will exhibit the behavior corresponding to the target version when running on the device. Set it to 6.0.0(20) according to the official recommendation.
  • compileSdkVersion: The SDK version used to compile the application project. It must satisfy compileSdkVersion ≥ targetSdkVersion, otherwise an error will be prompted.