迁移到Gradle插件v.1.1.2导致失败的lint检查

时间:2015-03-03 08:39:37

标签: android gradle lint

我的团队最近决定在Android工作室中使用新宣布的单元测试集成,这需要将Gradle插件版本升级到1.1.0或更高版本。但是这个更新导致我们的一个模块的Lint任务失败,出现了非常奇怪的错误。任何人都可以在这里提出一个可能存在问题的想法吗? Caused by: java.lang.ArrayIndexOutOfBoundsException: 2459 at org.eclipse.jdt.internal.compiler.lookup.TypeSystem.getUnannotatedType(TypeSystem.java:82) at org.eclipse.jdt.internal.compiler.lookup.TypeSystem.getParameterizedType(TypeSystem.java:138) at org.eclipse.jdt.internal.compiler.lookup.TypeSystem.getParameterizedType(TypeSystem.java:172) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createParameterizedType(LookupEnvironment.java:946) at org.eclipse.jdt.internal.compiler.lookup.Scope$Substitutor.substitute(Scope.java:511) at org.eclipse.jdt.internal.compiler.lookup.Scope.substitute(Scope.java:435) at org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.superclass(ParameterizedTypeBinding.java:1212) at com.android.tools.lint.EcjParser$EcjResolvedClass.isSubclassOf(EcjParser.java:1025) at com.android.tools.lint.checks.CleanupDetector.checkResourceRecycled(CleanupDetector.java:219) at com.android.tools.lint.checks.CleanupDetector.visitMethod(CleanupDetector.java:180) at com.android.tools.lint.client.api.JavaVisitor$DelegatingJavaVisitor.visitMethodInvocation(JavaVisitor.java:1314) at lombok.ast.MethodInvocation.accept(MethodInvocation.java:114) at lombok.ast.BinaryExpression.accept(BinaryExpression.java:131) at lombok.ast.ExpressionStatement.accept(ExpressionStatement.java:63) at lombok.ast.Block.accept(Block.java:106) at lombok.ast.Try.accept(Try.java:107) at lombok.ast.Block.accept(Block.java:106) at lombok.ast.MethodDeclaration.accept(MethodDeclaration.java:240) at lombok.ast.NormalTypeBody.accept(NormalTypeBody.java:57) at lombok.ast.ClassDeclaration.accept(ClassDeclaration.java:239) at lombok.ast.NormalTypeBody.accept(NormalTypeBody.java:57) at lombok.ast.ClassDeclaration.accept(ClassDeclaration.java:239) at lombok.ast.CompilationUnit.accept(CompilationUnit.java:83) at com.android.tools.lint.client.api.JavaVisitor.visitFile(JavaVisitor.java:263) at com.android.tools.lint.client.api.LintDriver.checkJava(LintDriver.java:1491) at com.android.tools.lint.client.api.LintDriver.runFileDetectors(LintDriver.java:1026) at com.android.tools.lint.client.api.LintDriver.checkProject(LintDriver.java:882) at com.android.tools.lint.client.api.LintDriver.analyze(LintDriver.java:433) at com.android.tools.lint.client.api.LintDriver.analyze(LintDriver.java:374) at com.android.tools.lint.LintCliClient.run(LintCliClient.java:130) at com.android.build.gradle.internal.LintGradleClient.run(LintGradleClient.java:112) at com.android.build.gradle.internal.LintGradleClient$run.call(Unknown Source) at com.android.build.gradle.tasks.Lint.runLint(Lint.groovy:198) at com.android.build.gradle.tasks.Lint.this$4$runLint(Lint.groovy) at com.android.build.gradle.tasks.Lint$this$4$runLint$1.callCurrent(Unknown Source) at com.android.build.gradle.tasks.Lint.lintSingleVariant(Lint.groovy:173) at com.android.build.gradle.tasks.Lint$lintSingleVariant$0.callCurrent(Unknown Source) at com.android.build.gradle.tasks.Lint.lint(Lint.groovy:75) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:579) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:562) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) ... 47 more

0 个答案:

没有答案