Status Update
Comments
uc...@google.com <uc...@google.com>
xa...@google.com <xa...@google.com>
di...@gmail.com <di...@gmail.com> #2
di...@gmail.com <di...@gmail.com> #3
Please provide sample project or apk to reproduce the issue.
Also mention the steps to be followed for reproducing the issue with the given sample project or apk.
Expected output
What is the expected output?
Current output
What is the current output?
Note: We could notice the issue in Google keep application as provided in
The line spacing differs in English, Japanese and Chinese languages.
Please don't mind the words typed in Japanese and Chinese as they are randomly typed and also we don't know reading / writing Japanese and Chinese.
xo...@google.com <xo...@google.com> #4
Folder API28 - Demonstrate the line spacing bug occurs in API 28
Folder API27 - Demonstrate the line spacing bug doesn't occur in API 27
Please kindly look at README.md for the outcome.
Please kindly let me know, if you need additional information.
Thank you.
di...@gmail.com <di...@gmail.com> #5
xo...@google.com <xo...@google.com> #6
xo...@google.com <xo...@google.com> #7
If you want to keep the line height the same (which might introduce overlapping glyph in different lines) please set fallbackLineSpacing to false.
11...@gmail.com <11...@gmail.com> #8
lu...@gmail.com <lu...@gmail.com> #9
Studio seems to have auto-downloaded a java 8 jdk "Amazon Corretto" to a ".jdks" folder in my user folder, and was using that to run one gradle process (all other ones were running with studio's jdk, which is java 11).
When i deleted the .jdks folder and restarted studio, it showed a bar saying "jdk '1.8' not found" with the options to download Amazon Corretto, or to pick a jdk path, so i picked studio's own jre path, and it fixed the issue. No more errors in either groovy or kotlin scripts.
Weird thing is that Studio's Project Structure dialog doesn't have a list of jdks like intelliJ's, just a single JDK Location box, which was already pointing to studio's jre folder the whole time. So how did it keep track of a separate "jdk '1.8'"?
I also had no external jdks installed (no JAVA_HOME in enviroment variables) so maybe that triggered the auto-download?
em...@davidliska.cz <em...@davidliska.cz> #10
I fixed this issue by changing JDK location inside project structure:
File -> Project structure -> SDK Location -> JDK location
Then I changed the location from bundled jre:
/home/fox/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.6825553/jre
to system jdk (i'm using openjdk 11.0.8):
/usr/lib/jvm/default
Not sure to what location was the jdk pointing originally.
xo...@google.com <xo...@google.com> #11
Right, thank you, this does seem to have something to do with internal/external JDKs. Another related failure mode I saw here at one point was resolving String
in a groovy build.gradle
to android.jar
, which is clearly not the right place (even if it means avoiding red symbols...).
At least it seems that a workaround setting the JDK to a system JDK is available. I'll continue to investigate.
em...@davidliska.cz <em...@davidliska.cz> #12
Seems that in my case, it was related to this issue:
Now, in canary-11 i'm using
- /home/fox/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.6825553/jre
and in canary-12
- /home/fox/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.6847140/jre
Both are working without errors (even after sync, clean build, invalidate cache/restart)
So maybe the project's JDK location was just wrong somehow. Or after the project was synced with system jdk, the problem goes away. Or just the update to canary-12 fixed the project.
di...@gmail.com <di...@gmail.com> #13
Seeing this again.
Android Studio Arctic Fox | 2020.3.1 Canary 5
Build #AI-203.6682.168.2031.7101492, built on January 25, 2021
Runtime version: 11.0.8+10-b944.6842174 amd64
VM: OpenJDK 64-Bit Server VM by N/A
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: com.intellij.plugins.thrift, net.seesharpsoft.intellij.plugins.csv, com.intellij.lang.jsgraphql, org.intellij.plugins.markdown
Description
Since upgrading to 4.2 Canary 8, code analysis can't resolve JDK classes, such as
java.lang.String
andjava.lang.Object
. I'm observing this when editing root project's build.gradle (Groovy), as well as a class in buildSrc (Groovy and Kotlin). Maybe related to the JDK 11 upgrade?Build: AI-202.6397.94.42.6787931, 202008250249,
AI-202.6397.94.42.6787931, JRE 11.0.7+10-b765.53x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1920x1080
AS: 4.2 Canary 8; Kotlin plugin: 1.4.0-release-Studio4.1-1; Android Gradle Plugin: 4.0.1; Gradle: 6.3; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: 3.10.2, from PATH: (not found)