简体   繁体   English

渲染问题 java.lang.NoClassDefFoundError: sun/misc/Cleaner

[英]Render issue java.lang.NoClassDefFoundError: sun/misc/Cleaner

在此处输入图片说明 i have recently faced this render problem which avoid preview of xml file in android studio!我最近遇到了这个渲染问题,它避免了在 android studio 中预览 xml 文件!

full error message is完整的错误信息是

java.lang.NoClassDefFoundError: sun/misc/Cleaner   at libcore.util.NativeAllocationRegistry.registerNativeAllocation_Original(NativeAllocationRegistry.java:130)   at libcore.util.NativeAllocationRegistry_Delegate.registerNativeAllocation(NativeAllocationRegistry_Delegate.java:66)   at libcore.util.NativeAllocationRegistry.registerNativeAllocation(NativeAllocationRegistry.java:119)   at android.os.Binder.<init>(Binder.java:404)   at com.android.internal.view.IInputMethodClient$Stub.<init>(IInputMethodClient.java:18)   at android.view.inputmethod.InputMethodManager$1.<init>(InputMethodManager.java:606)   at android.view.inputmethod.InputMethodManager.<init>(InputMethodManager.java:606)   at android.view.inputmethod.InputMethodManager_Delegate.getInstance(InputMethodManager_Delegate.java:43)   at android.view.inputmethod.InputMethodManager.getInstance(InputMethodManager.java:681)   at com.android.layoutlib.bridge.impl.RenderAction.setUp(RenderAction.java:249)   at com.android.layoutlib.bridge.impl.RenderAction.init(RenderAction.java:137)

i found same question on stackoverflow but that was about IntelliJ IDEA .我在 stackoverflow 上发现了同样的问题,但那是关于 IntelliJ IDEA 的。 and one question about android studio which had no answers!还有一个关于 android studio 没有答案的问题!

i was using android studio 3.6 when this happened!发生这种情况时,我正在使用 android studio 3.6! then i updated to 3.6.1 and problem still exists!然后我更新到 3.6.1,问题仍然存在!

then i downgraded to 3.5.3 and problem solved but this morning i woke up and see the same problem in 3.5.3 version too!然后我降级到 3.5.3 并解决了问题,但今天早上我醒来发现 3.5.3 版本中也出现了同样的问题!

any help would be appreciatated.thanks任何帮助将不胜感激。谢谢

I dont know why and how but for those who faced same issue!我不知道为什么以及如何,但对于那些面临同样问题的人! i fixed that by download and using android studio 4.0 beta 2我通过下载和使用 android studio 4.0 beta 2 解决了这个问题

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Applet错误-java.lang.NoClassDefFoundError:sun / misc / ProxyGenerator - Applet error - java.lang.NoClassDefFoundError: sun/misc/ProxyGenerator java.lang.NoClassDefFoundError:sun / misc / BASE64Encoder - java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder Eclipse IDE 错误(线程“main”中的异常 java.lang.NoClassDefFoundError:sun/misc/Unsafe) - Eclipse IDE ERROR (Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/Unsafe) java.lang.ClassNotFoundException:sun.misc.Cleaner - java.lang.ClassNotFoundException: sun.misc.Cleaner java.lang.NoClassDefFoundError:com / sun / star / lang / XEventListener - java.lang.NoClassDefFoundError: com/sun/star/lang/XEventListener 编年史与 corretto jdk17 java.lang.NoSuchMethodError: 'sun.misc.Cleaner sun.nio.ch.DirectBuffer.cleaner()' - chronicle with corretto jdk17 java.lang.NoSuchMethodError: 'sun.misc.Cleaner sun.nio.ch.DirectBuffer.cleaner()' NetSuite java.lang.NoClassDefFoundError:getConnection上的sun / io / MalformedInputException - NetSuite java.lang.NoClassDefFoundError: sun/io/MalformedInputException on getConnection java.lang.NoClassDefFoundError: sun/net/www/protocol/https/DefaultHostnameVerifier - java.lang.NoClassDefFoundError: sun/net/www/protocol/https/DefaultHostnameVerifier java.lang.NoClassDefFoundError: sun/security/ssl/HandshakeStateManager - java.lang.NoClassDefFoundError: sun/security/ssl/HandshakeStateManager java.lang.NoClassDefFoundError: com/sun/javafx/css/converters/SizeConverter - java.lang.NoClassDefFoundError: com/sun/javafx/css/converters/SizeConverter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM