Reputation: 7572
I'm doing ./gradlew :app:lintVitalRelease
and getting:
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)
Both AGP 3.5.0-beta02 and 3.5.0-beta03 gives this with gradle 5.4.1. Is this a known issue / are there workarounds?
(This StackOverflowError seemed like a good fit for stackoverflow.com)
Upvotes: 0
Views: 3303
Reputation: 7572
Apparently, all current beta and alpha releases of AGP (com.android.tools.build:gradle:X.Y.Z
) have this problem.
The solution is to downgrade to the latest stable release which is 3.4.1 at this time.
update: as per Google's issue tracker, the fix "will be released in AGP 3.6 Canary 6 and also a future beta of 3.5."
Upvotes: 1