1. 旧版和新版切换会报错(点击更正, 不影响程序使用)

    2.debug正常, 打包签名程序时候报错
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)
  1. Error⚠️ Ignoring InnerClasses attribute for an anonymous inner class
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/46649910

posted on 2016-09-29 15:17  MTing  阅读(341)  评论(0编辑  收藏  举报