Status Update
Comments
yb...@google.com <yb...@google.com> #2
I'm sorry screenshot names are all messed up, here is more explanation:
- Thu Jul 07 2022 16:50:00 GMT-0700 (Pacific Daylight Time).png
error caused by not finding jdk properly (first error)
- Thu Jul 07 2022 17:02:33 GMT-0700 (Pacific Daylight Time).png
error shown when i visit a JVM test
- Thu Jul 07 2022 17:03:18 GMT-0700 (Pacific Daylight Time).png
studio jdk config UI
- Thu Jul 07 2022 17:04:51 GMT-0700 (Pacific Daylight Time).png
result after workaround 2 where studio doesn't detect that ArrayMap extends Map
ga...@google.com <ga...@google.com> #3
This looks very similar to
Description
steps to reproduce:
Workaround: I'm not fully sure what exactly fixes it but: I've toggled the jdk (from gradle settings) between local zulu and prebuilt. Then I visited a
jvmTest
file (collections/jvmTest/ArrayMapCompatTest), it showed that project JDK is misconfigured. Once I configured that it worked.Workaround 2: If I run the steps above in the other order (first configure jdk, then toggle jdk), now it partially works where I'm still seeing some unexpected errors. (see screenshot)
So i think it is all random. :)
Not sure why the jdk is misconfigured (FYI, AndroidX passes its own JDK). Attached, you can find the logs and also the .idea folder zip (dot-idea.zip after fixed, and dot-idea-broken.zip when it is broken)
Build: (AGP 7.4.0-alpha08) Android Studio Electric Eel | 2022.1.1 Canary 8 Build #AI-221.5921.22.2211.8786657, built on June 30, 2022 Runtime version: 11.0.13+0-b1751.21-8125866 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 12.4 GC: G1 Young Generation, G1 Old Generation Memory: 8192M Cores: 10 Registry: external.system.auto.import.disabled=true ide.text.editor.with.preview.show.floating.toolbar=false
Non-Bundled Plugins: org.jetbrains.kotlin (221-1.7.0-release-281-AS5591.52)