美文网首页
鸿蒙安装应用失败:compileSdkVersion and r

鸿蒙安装应用失败:compileSdkVersion and r

作者: 雨田Android开发 | 来源:发表于2021-12-02 09:40 被阅读0次

报错信息

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


image

原因

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

解决方案

1、方案一、降低鸿蒙工程里的api版本
修改entry模块下的build.gradle文件中的compatibleSdkVersion版本号。
2、方案二、找支持高版本的机器。
目前如果要支持Api 7,可以选择“P40 Pro”。(P40不支持)

相关文章

网友评论

      本文标题:鸿蒙安装应用失败:compileSdkVersion and r

      本文链接:https://www.haomeiwen.com/subject/holyxrtx.html