【问题标题】:StackOverflowError with lintStackOverflowError 与 lint
【发布时间】:2019-05-31 00:59:02
【问题描述】:

我正在做 ./gradlew :app:lintVitalRelease 并得到:

Execution failed for task ':app:lintVitalRelease'.
> Lint infrastructure error
  Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Caused by: java.lang.StackOverflowError

    at org.gradle.api.internal.provider.DefaultPropertyState.getOrNull(DefaultPropertyState.java:159)
.... (the above line is repeating tons of times)

AGP 3.5.0-beta02 和 3.5.0-beta03 都在 gradle 5.4.1 中提供了这个。这是一个已知问题/是否有解决方法?

(这个 StackOverflowError 似乎很适合 stackoverflow.com)

【问题讨论】:

标签: android gradle android-gradle-plugin


【解决方案1】:

显然,AGP (com.android.tools.build:gradle:X.Y.Z) 的所有当前 beta 和 alpha 版本都有这个问题。

解决方案是降级到目前最新的稳定版本 3.4.1。

更新:根据 Google 的问题跟踪器,该修复“将在 AGP 3.6 Canary 6 以及未来的 3.5 测试版中发布。”

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-10-21
  • 2018-11-29
  • 2015-04-08
  • 2017-03-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多