title: Android Studio xml ArrayIndexOutOfBoundsException
body: <p>Layout Preview issue for Android Studio 2.3</p>
  
  <p>I do not know what the problem is.</p>
  
  <p>Is there a solution to this?</p>
  
  <p>=== configuration start ===</p>
  
  <p>os: mac 10.12.3</p>
  
  <p>ide: version: 2.3</p>
  
  <p>compileSdkVersion: 25</p>
  
  <p>buildToolsVersion: 25.0.2</p>
  
  <p>supportLibraryVersion: 25.3.0</p>
  
  <p>=== configuration end ===</p>
  
  <p>=== error report start ===</p>
  
  <pre><code>17356
  java.lang.ArrayIndexOutOfBoundsException: 17356
      at org.jetbrains.org.objectweb.asm.ClassReader.readUnsignedShort(ClassReader.java:2322)
      at org.jetbrains.org.objectweb.asm.ClassReader.getAttributes(ClassReader.java:2200)
      at org.jetbrains.org.objectweb.asm.ClassReader.accept(ClassReader.java:565)
      at org.jetbrains.org.objectweb.asm.ClassReader.accept(ClassReader.java:506)
      at com.android.tools.idea.rendering.ClassConverter.rewriteClass(ClassConverter.java:184)
      at com.android.tools.idea.rendering.ClassConverter.rewriteClass(ClassConverter.java:77)
      at com.android.tools.idea.rendering.RenderClassLoader.convertClass(RenderClassLoader.java:164)
      at com.android.tools.idea.rendering.RenderClassLoader.loadClass(RenderClassLoader.java:148)
      at com.android.tools.idea.rendering.RenderClassLoader.loadClassFile(RenderClassLoader.java:129)
      at org.jetbrains.android.uipreview.ModuleClassLoader.loadClassFile(ModuleClassLoader.java:380)
      at org.jetbrains.android.uipreview.ModuleClassLoader.loadClassFromModule(ModuleClassLoader.java:280)
      at org.jetbrains.android.uipreview.ModuleClassLoader.loadClassFromModuleOrDependency(ModuleClassLoader.java:239)
      at org.jetbrains.android.uipreview.ModuleClassLoader.load(ModuleClassLoader.java:176)
      at com.android.tools.idea.rendering.RenderClassLoader.findClass(RenderClassLoader.java:56)
      at org.jetbrains.android.uipreview.ModuleClassLoader.findClass(ModuleClassLoader.java:127)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at org.jetbrains.android.uipreview.ModuleClassLoader.loadClass(ModuleClassLoader.java:222)
      at java.lang.Class.getDeclaredClasses0(Native Method)
      at java.lang.Class.getDeclaredClasses(Class.java:1867)
      at org.jetbrains.android.uipreview.ViewLoader.parseClass(ViewLoader.java:137)
      at org.jetbrains.android.uipreview.ViewLoader.loadAndParseRClass(ViewLoader.java:647)
      at org.jetbrains.android.uipreview.ViewLoader.loadAndParseRClassSilently(ViewLoader.java:581)
      at com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadAndParseRClass(LayoutlibCallbackImpl.java:682)
      at com.android.tools.idea.rendering.RenderTask.&lt;init&gt;(RenderTask.java:178)
      at com.android.tools.idea.rendering.RenderService.createTask(RenderService.java:241)
      at com.android.tools.idea.uibuilder.model.NlModel.inflate(NlModel.java:362)
      at com.android.tools.idea.uibuilder.model.NlModel.render(NlModel.java:554)
      at com.android.tools.idea.uibuilder.model.NlModel$3.run(NlModel.java:599)
      at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:320)
      at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:310)
      at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:260)
      at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:274)
      at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:229)
      at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:222)
      at com.intellij.util.Alarm$Request$1.run(Alarm.java:378)
      at com.intellij.util.Alarm$Request.run(Alarm.java:389)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:227)
      at com.intellij.util.concurrency.BoundedTaskExecutor.runFirstTaskThenPollAndRunRest(BoundedTaskExecutor.java:178)
      at com.intellij.util.concurrency.BoundedTaskExecutor.access$000(BoundedTaskExecutor.java:40)
      at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:197)
      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)
  </code></pre>
  
  <p>=== Layout XML ===</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout 
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent”&gt;
  
      &lt;android.support.design.widget.AppBarLayout&gt;
          &lt;android.support.v7.widget.Toolbar /&gt;
          &lt;android.support.design.widget.TabLayout /&gt;
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;android.support.v4.view.ViewPager /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>