gpt4 book ai didi

android - IntelliJ Android 项目未呈现设计布局

转载 作者:搜寻专家 更新时间:2023-11-01 09:19:47 26 4
gpt4 key购买 nike

设计 View 不存在,当我检查错误时它说了一些关于渲染类加载器的内容

Image

java.lang.AssertionError
at com.android.tools.idea.rendering.ClassConverter.rewriteClass(ClassConverter.java:81)
at com.android.tools.idea.rendering.ClassConverter.rewriteClass(ClassConverter.java:72)
at com.android.tools.idea.rendering.RenderClassLoader.convertClass(RenderClassLoader.java:184)
at com.android.tools.idea.rendering.RenderClassLoader.loadClass(RenderClassLoader.java:168)
at com.android.tools.idea.rendering.RenderClassLoader.loadClassFile(RenderClassLoader.java:149)
at org.jetbrains.android.uipreview.ModuleClassLoader.loadClassFile(ModuleClassLoader.java:301)
at org.jetbrains.android.uipreview.ModuleClassLoader.loadClassFromModuleOrDependency(ModuleClassLoader.java:239)
at org.jetbrains.android.uipreview.ModuleClassLoader.load(ModuleClassLoader.java:177)
at com.android.tools.idea.rendering.RenderClassLoader.findClass(RenderClassLoader.java:61)
at org.jetbrains.android.uipreview.ModuleClassLoader.findClass(ModuleClassLoader.java:124)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.jetbrains.android.uipreview.ModuleClassLoader.loadClass(ModuleClassLoader.java:224)
at org.jetbrains.android.uipreview.ViewLoader.loadAndParseRClass(ViewLoader.java:536)
at org.jetbrains.android.uipreview.ViewLoader.loadAndParseRClassSilently(ViewLoader.java:509)
at com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadAndParseRClass(LayoutlibCallbackImpl.java:849)
at com.android.tools.idea.rendering.RenderTask.<init>(RenderTask.java:174)
at com.android.tools.idea.rendering.RenderService$RenderTaskBuilder.build(RenderService.java:590)
at com.android.tools.idea.uibuilder.scene.LayoutlibSceneManager.inflate(LayoutlibSceneManager.java:830)
at com.android.tools.idea.uibuilder.scene.LayoutlibSceneManager.updateModel(LayoutlibSceneManager.java:904)
at com.android.tools.idea.uibuilder.scene.LayoutlibSceneManager$2.lambda$run$0(LayoutlibSceneManager.java:625)
at com.intellij.openapi.project.DumbServiceImpl.doRun(DumbServiceImpl.java:389)
at com.intellij.openapi.project.DumbServiceImpl.updateFinished(DumbServiceImpl.java:381)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:82)
at com.intellij.openapi.application.TransactionGuardImpl.lambda$pollQueueLater$0(TransactionGuardImpl.java:67)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:433)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:416)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:873)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:822)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:461)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:704)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:460)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

最佳答案

YouTrack 上有一个已知问题:https://youtrack.jetbrains.com/issue/IDEA-215785 .它应该在最近的更新中得到修复。

关于android - IntelliJ Android 项目未呈现设计布局,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57236906/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com