Status Update
Comments
tn...@google.com <tn...@google.com>
tn...@google.com <tn...@google.com> #2
Bingran, can you please take a look?
From the stacktrace, it seems like the issue is triggered during the native model building (com.android.build.gradle.internal.ide.v2.NativeModelBuilder.buildAll(NativeModelBuilder.kt:104
), and it seems like .kts
build files are used (see prepareKotlinBuildScriptModel
task running).
Nick, does using:
- Android Studio: 2021.3.1 Canary 7
- AGP: 7.1.2
- Gradle: 7.2
also fail?
sh...@pinterest.com <sh...@pinterest.com> #3
I can't seem to reproduce the error now, but that may be due to project changes, or perhaps cache invalidation etc fixed it. However, given the error, perhaps there is still a bug there.
I only use build.gradle files, not kts, so any kotlin build files would be internal. However, the app uses Kotlin.
Gradle 7.2 worked with AGP 7.1.2, just 7.4 that had the problem.
tn...@google.com <tn...@google.com> #4
The error is thrown when analytics is queried in NativeModelBuilder
but AnalyticsService
doesn't seem to have been configured which is the reason why we get "no value available" error from AnalyticsService.reconstructProfileBuilder(AnalyticsService.kt:199
. Is is not obvious why AnalyticsService is not configured in a sync build. Due to it cannot be reproduced consistently, I think we should downgrade the priority and upgrade it when we see similar issues.
sh...@pinterest.com <sh...@pinterest.com> #5
I am running into this error again. Gradle 7.4 or 7.3.3, AGP 7.2.0, AS Dolphin | 2021.3.1 Beta 1. What can I try to resolve it?
Description
DESCRIBE THE ISSUE IN DETAIL:
We are seeing occasional errors on CI in
LintResourceRepository.getOrCreateRepository
. Based on the code and comments, this is a recoverable error, yet it still fails the lint task with aLintError
(and hence fails our builds.) Should it not be aLintWarning
instead? If it's recoverable I'd expect the lint task to be able to continue.I'm also happy to file a separate bug about the errors but we don't have any repro steps, as it happens intermittently, and only on CI.
Version of Gradle Plugin: 7.2.2 Version of Gradle: 7.3.3 Version of Java: openjdk 11.0.12 2021-07-20 OS: MacOS 12.6.1