Status Update
Comments
ch...@google.com <ch...@google.com>
vi...@google.com <vi...@google.com> #2
Thanks for the feedback. To help us troubleshoot this issue further, we will need more information. Please share detailed reproduction steps and as much as possible of the following information when it applies if you haven’t already:
- Android Studio version and OS type and version
- Screenshots or videos of the issue
- idea.log file (select Help > Show Log in Finder / Explorer)
- Thread dumps if the issue is a freezing or non-responding UI.
For more information on what’s needed and how to obtain this information please read the guide at
https://developer.android.com/studio/report-bugs#studio-bugs
ga...@linecorp.com <ga...@linecorp.com> #3
Android Studio version and OS type and version Screenshots or videos of the issue
idea.log file (select Help > Show Log in Finder / Explorer)
As I reported, I didn't run build with Android Studio, but just invoked gradle wrapper on command line
to perform lint.
And OS is linux (CentOS 7)
So, there is no screenshot, video and idea.log file to share.
gh...@google.com <gh...@google.com> #4
Suspected repro steps:
- Enable Lint text reports, so that the code in
TextReporter
runs - Have some Lint issues in the project, so that
getSourceText()
is called. - Invoke Lint such that some
mergeOnly
task runs before anyanalyze
task in the Gradle daemon.
This issue looks similar to
We need to decide (1) whether this should block the AGP 7.4 release, and (2) the best fix. For #2 I'm wondering if it makes sense to always initialize the Application instance, even in the mergeOnly
phase. AFAIK app init is fast (compared to project env init, which was the slow part?).
gh...@google.com <gh...@google.com> #5
Ah, there is one more important repro step:
- One of the .java/.kt/.kts files containing a Lint issue must also contain a carriage return character somewhere. This is what triggers the specific code path in
LintCliClient.readFile
.
Description
DESCRIBE THE ISSUE IN DETAIL:
STEPS TO REPRODUCE:
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply
all required information.
Studio Build: N/A
Version of Gradle Plugin: 7.4.0-beta05
Version of Gradle: 7.5.1
Version of Java: Java 11/Java 17
OS: Linux