林Android Studio中收到一個錯誤:ArrayIndexOutOfBoundsException異常Android Studio中(不是源代碼 - 應用程序)
堆棧跟蹤:
java.lang.ArrayIndexOutOfBoundsException: 82277
at org.jetbrains.org.objectweb.asm.ClassReader.readInt(ClassReader.java:2350)
at org.jetbrains.org.objectweb.asm.ClassReader.getAttributes(ClassReader.java:2201)
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:151)
at com.android.tools.idea.rendering.RenderClassLoader.loadClass(RenderClassLoader.java:135)
at com.android.tools.idea.rendering.RenderClassLoader.loadClassFile(RenderClassLoader.java:116)
at org.jetbrains.android.uipreview.ModuleClassLoader.loadClassFile(ModuleClassLoader.java:341)
at org.jetbrains.android.uipreview.ModuleClassLoader.loadClassFromModule(ModuleClassLoader.java:245)
at org.jetbrains.android.uipreview.ModuleClassLoader.loadClassFromModuleOrDependency(ModuleClassLoader.java:206)
at org.jetbrains.android.uipreview.ModuleClassLoader.load(ModuleClassLoader.java:150)
at com.android.tools.idea.rendering.RenderClassLoader.findClass(RenderClassLoader.java:54)
at org.jetbrains.android.uipreview.ModuleClassLoader.findClass(ModuleClassLoader.java:90)
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:193)
at java.lang.Class.getDeclaredClasses0(Native Method)
at java.lang.Class.getDeclaredClasses(Class.java:1867)
at org.jetbrains.android.uipreview.ViewLoader.parseClass(ViewLoader.java:562)
at org.jetbrains.android.uipreview.ViewLoader.loadAndParseRClass(ViewLoader.java:546)
at org.jetbrains.android.uipreview.ViewLoader.loadAndParseRClassSilently(ViewLoader.java:502)
at com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadAndParseRClass(LayoutlibCallbackImpl.java:676)
at com.android.tools.idea.rendering.RenderTask.<init>(RenderTask.java:164)
at com.android.tools.idea.rendering.RenderService.createTask(RenderService.java:236)
at com.android.tools.idea.uibuilder.model.NlModel.inflate(NlModel.java:345)
at com.android.tools.idea.uibuilder.model.NlModel.updateModel(NlModel.java:406)
at com.android.tools.idea.uibuilder.model.NlModel$2.run(NlModel.java:259)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:333)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:323)
at com.intellij.util.ui.update.MergingUpdateQueue$3.run(MergingUpdateQueue.java:267)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:282)
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: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$2.run(BoundedTaskExecutor.java:187)
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)
這發生在我要預覽在Android Studio中的佈局。
我剛更新到2.2.2。
這是工作正常之前,我更新,當我嘗試和更改預覽中使用的版本從25回到23它仍然不工作? 有沒有人有任何想法?
我會想有在2.2.2版中的錯誤。 – AxelH
但我旁邊的同事做了完全相同的事情,它的工作原理....但感謝您指出, – x10sion
您是否關閉即時運行並檢查? – Ramz