HarmonyOS 鸿蒙Next无法运行提示: Assertion failed: Network must not be accessed in EDT or inside read action

发布于 1周前 作者 vueper 最后一次编辑是 5天前 来自 鸿蒙OS

HarmonyOS 鸿蒙Next无法运行

java.lang.Throwable: Assertion failed: Network must not be accessed in EDT or inside read action, because this may take considerable amount of time, and write actions will be blocked during that time so user won’t be able to perform tasks in the IDE

    at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:469)

    at com.intellij.util.io.HttpRequests.process(HttpRequests.java:497)

    at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:335)

    at com.huawei.deveco.update.impl.UpdateUrlsWithWiseCloud.requestHota(UpdateUrlsWithWiseCloud.java:448)

    at com.huawei.deveco.update.impl.UpdateUrlsWithWiseCloud.getBaseUpdateInfo(UpdateUrlsWithWiseCloud.java:371)

    at com.huawei.deveco.update.impl.UpdateUrlsWithWiseCloud$IdeUpdatesFromWiseCloud.<init>(UpdateUrlsWithWiseCloud.java:107)

    at com.huawei.deveco.update.impl.UpdateUrlsWithWiseCloud.getUpdateUrlsFromWiseCloud(UpdateUrlsWithWiseCloud.java:103)

    at com.huawei.deveco.update.impl.UpdateChecker.doUpdateAndShowResult(UpdateChecker.kt:148)

    at com.huawei.deveco.update.impl.UpdateChecker.updateAndShowResult$lambda$0(UpdateChecker.kt:87)

    at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:250)

    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)

    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)

    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)

    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)

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

    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)

    at java.base/java.lang.Thread.run(Thread.java:840)

这里一直是灰色的,有没有大佬知道怎么解决。
2 回复

cke_149.png

运行这个npm.cmd,cmd会直接闪退

针对HarmonyOS(鸿蒙)Next无法运行的问题,首先请确认你的设备是否支持HarmonyOS,并检查系统版本是否为最新。尝试清除应用缓存或重新安装HarmonyOS Next应用。同时,检查设备的存储空间和运行内存是否充足,以确保应用有足够的资源运行。此外,查看是否有软件冲突或系统权限设置不当的问题。如果以上步骤均无法解决,可能是应用本身存在兼容性问题或缺陷,建议等待官方更新修复。如果问题依旧没法解决请加我微信,我的微信是itying888。

回到顶部