StackOverflowError 与 lint

StackOverflowError with lint

我正在做 ./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.WhosebugError

    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。这是一个已知问题/是否有解决方法?

(这个 WhosebugError 似乎很适合 whosebug.com)

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

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

更新: 根据 Google 的问题跟踪器,修复 "will be released in AGP 3.6 Canary 6 and also a future beta of 3.5."