> 文档中心 > compileSdkVersion and releaseType of the app do not match the apiVersion and releaseType on the devi

compileSdkVersion and releaseType of the app do not match the apiVersion and releaseType on the devi

compileSdkVersion and releaseType of the app do not match the apiVersion and releaseType on the device.

润和鸿蒙开发板真机测试编译运行时报这个错误。

原因:编译sdk版本高于真机

解决办法:第一步:修改 entry下面 build_profile.json5 里面的 apiType 为 faMode;

compileSdkVersion and releaseType of the app do not match the apiVersion and releaseType on the devi
第二步:修改 项目下面 build_profile.json5,修改编译版本,降低版本

compileSdkVersion and releaseType of the app do not match the apiVersion and releaseType on the devi
再次运行,问题解决。