wuhenzhizao / android-titlebar

🔥 通用,功能全面的自定义标题栏,支持沉浸式标题栏,颜色渐变,miui9
960 stars 158 forks source link

无法预览xml很不方便 #69

Open Liberations opened 1 year ago

Liberations commented 1 year ago

Exec access not allowed during rendering (getprop) at com.android.tools.idea.rendering.RenderSecurityException.create(RenderSecurityException.java:52) at com.android.tools.idea.rendering.RenderSecurityManager.checkExec(RenderSecurityManager.java:520) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1096) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071) at java.base/java.lang.Runtime.exec(Runtime.java:592) at java.base/java.lang.Runtime.exec(Runtime.java:416) at java.base/java.lang.Runtime.exec(Runtime.java:313) at com.wuhenzhizao.titlebar.statusbar.OSUtils.getProp(OSUtils.java:101) at com.wuhenzhizao.titlebar.statusbar.OSUtils.check(OSUtils.java:75) at com.wuhenzhizao.titlebar.statusbar.OSUtils.isMiui(OSUtils.java:33) at com.wuhenzhizao.titlebar.statusbar.StatusBarUtils.supportTransparentStatusBar(StatusBarUtils.java:20) at com.wuhenzhizao.titlebar.widget.CommonTitleBar.initGlobalViews(CommonTitleBar.java:264) at com.wuhenzhizao.titlebar.widget.CommonTitleBar.(CommonTitleBar.java:185) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:351) at org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:200) at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:161) at com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:294) at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:417) at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:428) at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:332) at android.view.LayoutInflater_Delegate.parseInclude(LayoutInflater_Delegate.java:164) at android.view.LayoutInflater.parseInclude(LayoutInflater.java:1165) at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:1123) at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1101) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088) at android.view.LayoutInflater.inflate(LayoutInflater.java:686) at android.view.LayoutInflater.inflate(LayoutInflater.java:505) at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:359) at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:436) at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:121) at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:717) at com.android.tools.idea.rendering.RenderTask.lambda$inflate$9(RenderTask.java:873) at com.android.tools.idea.rendering.RenderExecutor$runAsyncActionWithTimeout$3.run(RenderExecutor.kt:192) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)

coolBreezes commented 1 year ago

@Liberations 请问您是在哪里看到报错信息呢,这个报错我已经修改好了,但我这边看不到新的报错信息 image

coolBreezes commented 1 year ago

@Liberations 已修复,当前已提交push request 给到作者 [bugFix] 修复AS预览模式不显示layout问题