java.lang.NoSuchMethodError: android.graphics.drawable.VectorDrawable_Delegate.nDraw(JJJLandroid/gra

今天遇到了不能预览布局文件的问题,google了一下,很快解决了问题。

下面是报错信息:

java.lang.NoSuchMethodError: android.graphics.drawable.VectorDrawable_Delegate.nDraw(JJJLandroid/graphics/Rect;ZZ)I
at android.graphics.drawable.VectorDrawable.nDraw(VectorDrawable.java)
at android.graphics.drawable.VectorDrawable.draw(VectorDrawable.java:304)
at android.widget.ImageView.onDraw(ImageView.java:1286)
at android.view.View.draw(View.java:17056)
at android.view.View.draw(View.java:16964)
at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3715)
at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)
at android.view.ViewGroup.drawChild(ViewGroup.java:3715)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3501)

at android.view.View.draw(View.java:17059)

at android.view.View.draw(View.java:16964)
at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3715)
at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)
at android.view.ViewGroup.drawChild(ViewGroup.java:3715)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3501)
at android.view.View.draw(View.java:17059)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:384)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:495)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:434)
at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)
at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:520)
at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:508)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:967)
at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:508)
at com.android.tools.idea.rendering.RenderTask.access$600(RenderTask.java:75)
at com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:620)
at com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:617)
at com.android.tools.idea.rendering.RenderService.runRenderAction(RenderService.java:371)
at com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:617)
at com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:639)
at com.intellij.android.designer.designSurface.AndroidDesignerEditorPanel$7.run(AndroidDesignerEditorPanel.java:519)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:337)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:327)
at com.intellij.util.ui.update.MergingUpdateQueue$3.run(MergingUpdateQueue.java:271)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:286)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:244)
at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:234)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:352)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)


我的电脑截屏是这样的:


最后解决方法在stackoverflow中找到,链接为点击打开链接:http://stackoverflow.com/questions/37658009/rendering-problems-exception-android-graphics-drawable

我的解决方法截图如下:

java.lang.NoSuchMethodError: android.graphics.drawable.VectorDrawable_Delegate.nDraw(JJJLandroid/gra_第1张图片

你可能感兴趣的:(移动开发,android)