android studio使用中遇到的問題

  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/46649910java

相關文章
相關標籤/搜索