鸿蒙安装应用失败:compileSdkVersion and releaseType of the app do not match the apiVersio

659 阅读1分钟

报错信息

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

原因

鸿蒙工程的api版本比机器支持的版本高了。

解决方案

1、方案一、降低鸿蒙工程里的api版本 修改entry模块下的build.gradle文件中的compatibleSdkVersion版本号。

2、方案二、找支持高版本的机器。 目前如果要支持Api 7,可以选择“P40 Pro”。(P40不支持)

关于我

厦门大学计算机专业 | 前华为工程师
专注分享编程技术,没啥深度,但是易懂。
Java | 安卓 | 前端 | 小程序 | 鸿蒙
公众号:花生皮编程