25

I'm getting this Error :

Rendering Problems Exception raised during rendering: android.graphics.drawable.VectorDrawable_Delegate.nDraw(JJJLandroid/graphics/Rect;ZZ)

I know that I can change from " N preview" version to "23" and it will work but what I have to do so that it works on "preview"?

I tried:

  • clearing and rebuilding
  • installed sdk tools
  • invalidate caches /restart
Sufian
  • 6,405
  • 16
  • 66
  • 120
pb4now
  • 1,305
  • 4
  • 18
  • 45
  • Same issue as: http://stackoverflow.com/questions/38544129/exception-raised-during-renderingbinary-xml-file-line-1error-inflating-class – José Sep 21 '16 at 16:51

2 Answers2

64

You can change the target for the preview in the top right button of the preview area, like in the picture below:

enter image description here

Hope it helps!

Micho
  • 3,929
  • 13
  • 37
  • 40
11

Automatically Pick Best does not work for some time when latest not installed perfectly. And probably android studio pick Automatically Pick Best by default. So in that case we have to select fully installed manually. For more detail and reference check This Answer

Community
  • 1
  • 1
Inzimam Tariq IT
  • 6,548
  • 8
  • 42
  • 69
  • This often happens if you have your own custom created or edited theme added to your app from the manifest. Try changing the theme to your custom theme in the preview, just where you were changing the android API version. It might work. It worked for me. – Kaustav Banerjee Aug 29 '16 at 16:20