鸿蒙真机调试签名失败

新创建一个API11的项目,链接真机一直报签名有问题。

Failure[MSG_ERR_INSTALL_FAILED_NO_BUNDLE_SIGNATURE] 

IDE报错?


 java.lang.Throwable: Decryption failed. Delete the material folder in the .p12 file directory and apply automatic signing again.,Sub component state is illegal!

at com.intellij.openapi.diagnostic.Logger.error(Logger.java:202)

at com.huawei.deveco.projectmgmt.ohos.signature.utils.SignConfigFuncUtil.getEncryptPassword(SignConfigFuncUtil.java:460)

at com.huawei.deveco.projectmgmt.ohos.dialog.ProjectStructureDialog.getViewSigningJsonObjectList(ProjectStructureDialog.java:816)

at com.huawei.deveco.projectmgmt.ohos.dialog.ProjectStructureDialog.modifySigningCfg(ProjectStructureDialog.java:744)

at com.huawei.deveco.projectmgmt.ohos.dialog.ProjectStructureDialog.modifySigningConfigs(ProjectStructureDialog.java:658)

at com.huawei.deveco.projectmgmt.ohos.dialog.ProjectStructureDialog.modifyProjectCfg(ProjectStructureDialog.java:492)

at com.huawei.deveco.projectmgmt.ohos.dialog.ProjectStructureDialog.lambda$updateProjectProfile$3(ProjectStructureDialog.java:466)

at com.intellij.openapi.command.WriteCommandAction.lambda$runWriteCommandAction$4(WriteCommandAction.java:362)

at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.lambda$doRunWriteCommandAction$1(WriteCommandAction.java:150)

at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:982)

at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.lambda$doRunWriteCommandAction$2(WriteCommandAction.java:148)

at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:219)

at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:184)

at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.doRunWriteCommandAction(WriteCommandAction.java:157)

at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.run(WriteCommandAction.java:124)

at com.intellij.openapi.command.WriteCommandAction.runWriteCommandAction(WriteCommandAction.java:362)

at com.intellij.openapi.command.WriteCommandAction.runWriteCommandAction(WriteCommandAction.java:350)

at com.huawei.deveco.projectmgmt.ohos.dialog.ProjectStructureDialog.updateProjectProfile(ProjectStructureDialog.java:464)

at com.huawei.deveco.projectmgmt.ohos.dialog.ProjectStructureDialog$ProjectConfigChangeHandler.lambda$onQuery$0(ProjectStructureDialog.java:427)

at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)

at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)

at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)

at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:840)

at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:455)

at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:74)

at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:114)

at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:36)

at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)

at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:788)

at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)

at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:731)

at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)

at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)

at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:758)

at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:909)

at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:756)

at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$5(IdeEventQueue.java:437)

at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)

at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:436)

at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:113)

at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:615)

at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:434)

at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:840)

at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:480)

at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)

at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)

at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:121)

at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191)

at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236)

at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234)

at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)

at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234)

at java.desktop/java.awt.Dialog.show(Dialog.java:1080)

at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:743)

at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:467)

at com.intellij.openapi.ui.DialogWrapper.doShow(DialogWrapper.java:1676)

at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1634)

at com.huawei.deveco.projectmgmt.ohos.dialog.JcefDialog.show(JcefDialog.java:159)

at com.huawei.deveco.projectmgmt.hos.actions.HosProjectStructureAction.actionPerformed(HosProjectStructureAction.java:66)

at com.huawei.deveco.debugger.ohos.util.DebuggerUtil.invokeSignatureAction(DebuggerUtil.java:468)

at com.huawei.deveco.debugger.ohos.util.DebuggerUtil$1.actionPerformed(DebuggerUtil.java:433)

at com.intellij.notification.NotificationAction.actionPerformed(NotificationAction.java:33)

at com.intellij.openapi.actionSystem.ex.ActionUtil.doPerformActionOrShowPopup(ActionUtil.java:327)

at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performActionDumbAwareWithCallbacks$4(ActionUtil.java:306)

at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:350)

at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:306)

at com.intellij.openapi.fileEditor.impl.IdeUiServiceImpl.performActionDumbAwareWithCallbacks(IdeUiServiceImpl.java:114)

at com.intellij.notification.Notification.fire(Notification.java:275)

at com.intellij.notification.impl.NotificationsManagerImpl.lambda$createAction$11(NotificationsManagerImpl.java:842)

at com.intellij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:175)

at com.intellij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:389)

at com.intellij.ui.components.labels.LinkLabel$MyMouseHandler.mouseReleased(LinkLabel.java:362)

at java.desktop/java.awt.Component.processMouseEvent(Component.java:6656)

at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3385)

at java.desktop/java.awt.Component.processEvent(Component.java:6421)

at java.desktop/java.awt.Container.processEvent(Container.java:2266)

at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5026)

at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)

at java.desktop/java.awt.Component.dispatchEvent(Component.java:4854)

at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)

at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)

at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)

at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)

at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2804)

at java.desktop/java.awt.Component.dispatchEvent(Component.java:4854)

at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:790)

at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)

at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:731)

at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)

at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)

at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)

at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:763)

at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:761)

at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)

at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)

at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:760)

at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:909)

at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:831)

at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:753)

at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$5(IdeEventQueue.java:437)

at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)

at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:436)

at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:113)

at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:615)

at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:434)

at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:840)

at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:480)

at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)

at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)

at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)

at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)

at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)

at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)

解决办法

签名没成功

/Users/sun/DevEcoStudioProjects/MyApplication/entry/build/default/outputs/default/entry-default-unsigned.hap

把这个config文件夹下的文件全部删了重新签名试试!

/Users/sun/.ohos/config

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 215,384评论 6 497
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 91,845评论 3 391
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 161,148评论 0 351
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 57,640评论 1 290
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 66,731评论 6 388
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 50,712评论 1 294
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,703评论 3 415
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,473评论 0 270
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,915评论 1 307
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,227评论 2 331
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,384评论 1 345
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,063评论 5 340
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,706评论 3 324
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,302评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,531评论 1 268
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,321评论 2 368
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,248评论 2 352

推荐阅读更多精彩内容