Q:工程检查报错,提示“Incorrect settings found in the build-profile.json5 file”。
A:解决措施如下:
{
"app": {
"signingConfigs": [],
"products": [
{
"name": "default",
"signingConfig": "default",
"compatibleSdkVersion": "5.0.0(12)", // Specify the minimum version compatible with HarmonyOS applications/services. The version number needs to be changed to "5.0.0 (12)", please use English carefully And ()
"targetSdkVersion": "5.0.0(12)", // Specify the target version for HarmonyOS applications/services. If not set, the default is compatibleSdkVersion
"runtimeOS": "HarmonyOS", // Designated as HarmonyOS/OpenHarmony
}
],
// ...
}