Status Update
Comments
xi...@google.com <xi...@google.com>
ss...@gmail.com <ss...@gmail.com> #2
Caused by: java.lang.IndexOutOfBoundsException: Empty list doesn't contain element at index 0.
at kotlin.collections.EmptyList.get(Collections.kt:37)
at kotlin.collections.EmptyList.get(Collections.kt:25)
at com.android.tools.lint.Main.createLintRequest(Main.java:1747)
at com.android.tools.lint.Main.run(Main.java:280)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at com.android.build.gradle.internal.lint.AndroidLintWorkAction.invokeLintMainRunMethod(AndroidLintWorkAction.kt:103)
at com.android.build.gradle.internal.lint.AndroidLintWorkAction.runLint(AndroidLintWorkAction.kt:90)
at com.android.build.gradle.internal.lint.AndroidLintWorkAction.execute(AndroidLintWorkAction.kt:64)
at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:66)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:62)
at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:100)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1.lambda$execute$0(NoIsolationWorkerFactory.java:62)
... 23 more
// Set up lint project dependencies based on the model
boolean isReporting = argumentState.mode == LintDriver.DriverMode.MERGE;
List<LintModelModuleProject> roots =
LintModelModuleProject.resolveDependencies(projects, isReporting);
lintRequest = new LintRequest(client, Collections.emptyList());
lintRequest.setProjects(roots);
if (isReporting) {
EnumSet<Platform> platforms =
roots.get(0).isAndroidProject() ? Platform.ANDROID_SET : Platform.JDK_SET;
lintRequest.setPlatform(platforms);
}
It seems like that roots
is empty (for lintReportJvm
).
ss...@gmail.com <ss...@gmail.com> #3
Execution failed for task ':lintReportJvm'
OP, are you applying the lint plugin to the root Gradle project? I'm guessing that's the problem here... assuming you only want to apply the lint plugin to modules with source code, etc.
ss...@gmail.com <ss...@gmail.com> #4
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Meerkat | 2024.3.1 Canary 1
- Android Gradle Plugin 8.9.0-alpha01
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
ss...@gmail.com <ss...@gmail.com> #5
Thank you people!
je...@google.com <je...@google.com>
mi...@google.com <mi...@google.com> #6
Thank you for reporting the issue! A fix has been submitted and will target AGP 8.9.0-alpha08.
an...@google.com <an...@google.com> #7
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Meerkat | 2024.3.1 Canary 8
- Android Gradle Plugin 8.9.0-alpha08
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
We are building a App Bundle and want
lintVitalRelease
to be executed during the build process. The task runs during APK builds with theassembleRelease
task, but it doesn’t run during app bundle builds.For me,
assembleRelease
and bundleRelease are essentially about the same thing – building a complete product ready for publishing in Google Play. Therefore, we’d like the lint to run during bundle builds just as it does during APK builds.STEPS TO REPRODUCE:
./gradlew :app:bundleProdRelease
inVersion of Gradle Plugin: 8.7.1 Version of Gradle: 8.10.2