Android Studio 1.4.1的持续渲染问题

时间:2015-11-06 23:46:01

标签: java android android-studio ide rendering

我是使用Android Studio的新手,所以如果这很糟糕,请耐心等待。

无论我使用什么API,我都会不断遇到叠加渲染问题。我已经google了很多,并没有真正找到解决方案。应用程序本身可以,但叠加查看器无法正确呈现所有图形。这是事情

  

无法实例化以下类:    - android.support.design.widget.CoordinatorLayout    - android.support.design.widget.AppBarLayout

     

java.lang.IllegalArgumentException:您需要将Theme.AppCompat主题(或后代)与设计库一起使用。       在android.support.design.widget.ThemeUtils.checkAppCompatTheme(ThemeUtils.java:34)       在android.support.design.widget.CoordinatorLayout。(CoordinatorLayout.java:178)       在android.support.design.widget.CoordinatorLayout。(CoordinatorLayout.java:172)       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)       at java.lang.reflect.Constructor.newInstance(Constructor.java:422)       在org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:458)       在org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:170)       在org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:103)       在com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:190)       在android.view.BridgeInflater.loadCustomView(BridgeInflater.java:218)       在android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:145)       在android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)       在android.view.LayoutInflater.inflate(LayoutInflater.java:492)       在android.view.LayoutInflater.inflate(LayoutInflater.java:394)       在com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:223)       在com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:426)       在com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)       在com.android.tools.idea.rendering.RenderTask $ 2.compute(RenderTask.java:510)       在com.android.tools.idea.rendering.RenderTask $ 2.compute(RenderTask.java:498)       在com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:888)       在com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:498)       在com.android.tools.idea.rendering.RenderTask.access $ 600(RenderTask.java:72)       在com.android.tools.idea.rendering.RenderTask $ 3.call(RenderTask.java:610)       在com.android.tools.idea.rendering.RenderTask $ 3.call(RenderTask.java:607)       在com.android.tools.idea.rendering.RenderService.runRenderAction(RenderService.java:366)       在com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:607)       在com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:629)       在com.intellij.android.designer.designSurface.AndroidDesignerEditorPanel $ 6.run(AndroidDesignerEditorPanel.java:480)       在com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:320)       在com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:310)       在com.intellij.util.ui.update.MergingUpdateQueue $ 2.run(MergingUpdateQueue.java:254)       在com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:269)       在com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:227)       在com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:217)       在com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)       at com.intellij.util.Alarm $ Request $ 1.run(Alarm.java:351)       at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)       at java.util.concurrent.FutureTask.run(FutureTask.java:266)       在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)       at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)       在java.lang.Thread.run(Thread.java:745)

0 个答案:

没有答案