Android 调试构建失败 "Stackoverflow Error" post gradle 升级到 2.3.0
Android debug build failing with "Stackoverflow Error" post gradle upgrade to 2.3.0
我最近升级到 gradle 插件 2.3.0,gradle 版本升级到 4.3.1。 Post 升级调试版本失败并出现以下堆栈跟踪。不知道哪里出了问题。可以肯定的是,根据日志,有一些与数据绑定相关的东西,但我无法得到指示。需要帮助。
cannot generate view binders java.lang.WhosebugError
00:16:40,443 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at android.databinding.tool.reflection.annotation.AnnotationTypeUtil.toJava(AnnotationTypeUtil.java:176)
00:16:40,443 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at android.databinding.tool.reflection.annotation.AnnotationTypeUtil.toJava(AnnotationTypeUtil.java:149)
00:16:40,443 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at android.databinding.tool.reflection.annotation.AnnotationTypeUtil.toJava(AnnotationTypeUtil.java:249)
00:16:40,443 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at android.databinding.tool.reflection.annotation.AnnotationTypeUtil.toJava(AnnotationTypeUtil.java:151)
00:16:40,443 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at android.databinding.tool.reflection.annotation.AnnotationTypeUtil.lambda$toJava(AnnotationTypeUtil.java:188)
00:16:40,443 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.stream.ReferencePipeline.accept(ReferencePipeline.java:193)
00:16:40,443 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.Iterator.forEachRemaining(Iterator.java:116)
00:16:40,444 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
00:16:40,444 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
00:16:40,444 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
00:16:40,444 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
00:16:40,444 ERROR - 00:16:40.423 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
00:16:40,444 ERROR - 00:16:40.423 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
Post 这个堆栈跟踪只是无休止地重复同样的问题。
经过一些调查,我发现这是因为我的构建的日志级别设置为 INFO,并且机器 运行 内存不足。将日志级别更改为 "DEBUG" 后问题已解决。
我最近升级到 gradle 插件 2.3.0,gradle 版本升级到 4.3.1。 Post 升级调试版本失败并出现以下堆栈跟踪。不知道哪里出了问题。可以肯定的是,根据日志,有一些与数据绑定相关的东西,但我无法得到指示。需要帮助。
cannot generate view binders java.lang.WhosebugError
00:16:40,443 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at android.databinding.tool.reflection.annotation.AnnotationTypeUtil.toJava(AnnotationTypeUtil.java:176)
00:16:40,443 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at android.databinding.tool.reflection.annotation.AnnotationTypeUtil.toJava(AnnotationTypeUtil.java:149)
00:16:40,443 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at android.databinding.tool.reflection.annotation.AnnotationTypeUtil.toJava(AnnotationTypeUtil.java:249)
00:16:40,443 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at android.databinding.tool.reflection.annotation.AnnotationTypeUtil.toJava(AnnotationTypeUtil.java:151)
00:16:40,443 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at android.databinding.tool.reflection.annotation.AnnotationTypeUtil.lambda$toJava(AnnotationTypeUtil.java:188)
00:16:40,443 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.stream.ReferencePipeline.accept(ReferencePipeline.java:193)
00:16:40,443 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.Iterator.forEachRemaining(Iterator.java:116)
00:16:40,444 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
00:16:40,444 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
00:16:40,444 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
00:16:40,444 ERROR - 00:16:40.422 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
00:16:40,444 ERROR - 00:16:40.423 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
00:16:40,444 ERROR - 00:16:40.423 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
Post 这个堆栈跟踪只是无休止地重复同样的问题。
经过一些调查,我发现这是因为我的构建的日志级别设置为 INFO,并且机器 运行 内存不足。将日志级别更改为 "DEBUG" 后问题已解决。