简体   繁体   English

android 项目 Intellij-Idea 中的渲染问题

[英]Render problem in Intellij-Idea on android project

While loading a layout file it doesn't appears, and it show a render problem error.加载布局文件时,它不会出现,并显示渲染问题错误。

I have tried to refresh the layout and it shows the same error, i have tried to invalidate cache and restart option and it comes with the same error.我尝试刷新布局并显示相同的错误,我尝试使缓存和重新启动选项无效,并且出现相同的错误。

it show these on render problem它在渲染问题上显示这些



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:245)
at com.android.layoutlib.bridge.impl.RenderAction.init(RenderAction.java:133)

i am expecting the layout to visible clearly, i have run the same project with android studio and its working fine, but again i'm facing the same render problem with Intellij-Idea IDE.我希望布局清晰可见,我已经使用 android studio 运行了相同的项目并且它工作正常,但是我再次面临与 Intellij-Idea IDE 相同的渲染问题。

After wasting 3 hr this help me浪费了 3 小时后,这对我有帮助

Uninstall complete java from Computer and install java 8 again从计算机卸载完整的 java 并再次安装 java 8

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM