String index out of range: -82 java.lang.StringIndexOutOfBoundsException: String index out of range: -82 at java.lang.String.substring(String.java:1967) at com.android.ide.common.blame.parser.LegacyNdkOutputParser.parse(LegacyNdkOutputParser.java:113) at com.android.ide.common.blame.parser.ToolOutputParser.parseToolOutput(ToolOutputParser.java:86) at com.android.tools.idea.gradle.output.parser.BuildOutputParser.parseGradleOutput(BuildOutputParser.java:43) at com.android.tools.idea.gradle.invoker.GradleTasksExecutor.lambda$collectMessages$460(GradleTasksExecutor.java:453) at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:369) 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)
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class Error:associated EnclosingMethod attribute. This class was probably produced by a Error:(com.tencent.mm.sdk.b.b) that doesn't come with an Error:compiler that did not target the modern .class file format. The recommended Error:solution is to recompile the class from source, using an up-to-date compiler Error:this warning is that reflective operations on this class will incorrectly Error:and without specifying any "-target" type options. The consequence of ignoring Error:indicate that it is *not* an inner class.
好像都是升級了 android studio 2.2 以後纔出了這些問題
解決方法:
https://www.zhihu.com/question/46649910java