赞
踩
升级 / API11 / 真机 / 报错
工程从preview0(API10)升级到preview1(API11),IDE升级到了4.1.3.5,SDK从线上下载完成,工程机真机升级到了Developer Preview1(2.0.0.59),build-profile.json5的相关配置也进行了升级,版本配置如下:
- "products": [
- {
- "name": "default",
- "signingConfig": "default",
- "compileSdkVersion": "4.1.0(11)",
- "compatibleSdkVersion": "4.1.0(11)",
- "targetSdkVersion": "4.1.0(11)",
- "runtimeOS": "HarmonyOS"
- }
- ],
运行时编译器会报错,提示如下:
- 01/26 11:03:47: Install Failed: error: failed to install bundle.
- code:9568393
- error: verify code signature failed.
- Update the SDK to the latest version and set compileSdkVersion to API11 or a later version.
- Open SDK Manager
- $ hdc shell rm -rf data/local/tmp/7658e63a92c14f7fbfce9f179f320cfcError while Deploy Hap
在Deveco Studio中点击Tools -> SDK Manager,查看当前Deveco Studio配置的SDK是否有HarmonyOS NEXT Developer Preview1。
若状态不是Installed,请先下载HarmonyOS NEXT Developer Preview1的SDK,并配置到Deveco Studio的对应目录下。
更多运行调试报错案例请参见:https://developer.huawei.com/consumer/cn/doc/harmonyos-faqs/faq-debugging-and-running-0000001166752005
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。