鴻蒙真機(jī)調(diào)試簽名失敗

新創(chuàng)建一個API11的項目伶选,鏈接真機(jī)一直報簽名有問題。

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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市瘪弓,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌盔腔,老刑警劉巖杠茬,帶你破解...
    沈念sama閱讀 206,378評論 6 481
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異弛随,居然都是意外死亡瓢喉,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,356評論 2 382
  • 文/潘曉璐 我一進(jìn)店門舀透,熙熙樓的掌柜王于貴愁眉苦臉地迎上來栓票,“玉大人,你說我怎么就攤上這事愕够∽咛埃” “怎么了?”我有些...
    開封第一講書人閱讀 152,702評論 0 342
  • 文/不壞的土叔 我叫張陵惑芭,是天一觀的道長坠狡。 經(jīng)常有香客問我,道長遂跟,這世上最難降的妖魔是什么逃沿? 我笑而不...
    開封第一講書人閱讀 55,259評論 1 279
  • 正文 為了忘掉前任,我火速辦了婚禮幻锁,結(jié)果婚禮上凯亮,老公的妹妹穿的比我還像新娘。我一直安慰自己哄尔,他們只是感情好假消,可當(dāng)我...
    茶點故事閱讀 64,263評論 5 371
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著岭接,像睡著了一般富拗。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上鸣戴,一...
    開封第一講書人閱讀 49,036評論 1 285
  • 那天啃沪,我揣著相機(jī)與錄音,去河邊找鬼葵擎。 笑死谅阿,一個胖子當(dāng)著我的面吹牛半哟,可吹牛的內(nèi)容都是我干的酬滤。 我是一名探鬼主播签餐,決...
    沈念sama閱讀 38,349評論 3 400
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼盯串!你這毒婦竟也來了氯檐?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 36,979評論 0 259
  • 序言:老撾萬榮一對情侶失蹤体捏,失蹤者是張志新(化名)和其女友劉穎冠摄,沒想到半個月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體几缭,經(jīng)...
    沈念sama閱讀 43,469評論 1 300
  • 正文 獨居荒郊野嶺守林人離奇死亡河泳,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 35,938評論 2 323
  • 正文 我和宋清朗相戀三年筑悴,在試婚紗的時候發(fā)現(xiàn)自己被綠了虽抄。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片轩褐。...
    茶點故事閱讀 38,059評論 1 333
  • 序言:一個原本活蹦亂跳的男人離奇死亡爵川,死狀恐怖埂奈,靈堂內(nèi)的尸體忽然破棺而出员魏,到底是詐尸還是另有隱情誓沸,我是刑警寧澤诸迟,帶...
    沈念sama閱讀 33,703評論 4 323
  • 正文 年R本政府宣布否副,位于F島的核電站汉矿,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏备禀。R本人自食惡果不足惜洲拇,卻給世界環(huán)境...
    茶點故事閱讀 39,257評論 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望痹届。 院中可真熱鬧呻待,春花似錦、人聲如沸队腐。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,262評論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽柴淘。三九已至迫淹,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間为严,已是汗流浹背敛熬。 一陣腳步聲響...
    開封第一講書人閱讀 31,485評論 1 262
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點兒被人妖公主榨干…… 1. 我叫王不留第股,地道東北人应民。 一個月前我還...
    沈念sama閱讀 45,501評論 2 354
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親诲锹。 傳聞我的和親對象是個殘疾皇子繁仁,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 42,792評論 2 345

推薦閱讀更多精彩內(nèi)容