Hello Don't know if this is the right channel but ...
# multiplatform
f
Hello Don't know if this is the right channel but I'm using Android Studio Narwhal Feature Drop | 2025.1.2 Nightly 2025-05-22 with the latest version of kotlin multiplaform plugin but I'm having some strange issues The projects build correctly in Android but it shows "Unresolved reference" every class I have and also each time I open the IDE shows up a top message saying Project JDK is not defined. I already defined several times and it keeps showing this. I also tried to used the option File -> Repair IDE and the issues remained. For the launch of the iOS App, is simply not launching. shows an message "Failed waiting too long for the connection to be established"
plus1 1
t
If you go to the "File" -> "Project structure" -> "Project" - do you see a selected SDK in the SDK dropdown?
f
this is what I have in that window
c
I am getting the same issue, is it resolved for you @filipebaptista?
m
Can you please report this on https://issuetracker.google.com/issues considering also to upload
idea.log
file from
Help > Collect Logs and Diagnostic Data)
In addition, you can also share your
.idea/gradle.xml
and your
.idea/misc.xml
files. In theory, after a successful Gradle sync this should be fixed by itself since AS is using your Gradle JDK configuration to set up the Project JDK, however, for some reason it doesn’t work properly which is strange.
As a workaround you can try to remove the
.idea/misc.xml
or considering removing the jdk table associated with the
project-jdk-name
and stored under android studio configuration directory • macOS:
~/Library/Application Support/Google/AndroidStudio-VERSION/options/jdk.table.xml
• linux:
~/.config/Google/AndroidStudio-VERSION/options/jdk.table.xml
• windows:
%APPDATA%\Google\AndroidStudio-VERSION\options\jdk.table.xml
f
The workaround didn't solved. I also now using the Android Studio Narwhal Feature Drop | 2025.1.2 Nightly 2025-05-28
h
Just to confirm is this related to the Kotlin Multiplatform plugin ?- in other words if you disable the plugin does everything work
f
@Hakan Mehmed I've tested by disabling the plugin and now errors are not shown
Unresolved reference
are not shown neither the banner with JDK banner
t
Hm, please share more info as Madalin asked in this issue
f
Do you want idea.log is that it?
c
For me, I don’t have issues with JDK. The only issue is “Failed waiting too long for the connection to be established” on Android Studio Narwhal Feature Drop | 2025.1.2 Canary 2. I can run iOS app using xcode. It seems that AS is having some problem try to establish connection with simulator even though I opened it already.
m
@filipebaptista I saw your https://issuetracker.google.com/issues/420743928 ticket and answered accordingly based on shared details your provided. Please consider creating a ticket on youtrack and share your idea.log but ensure to delete it first, close IDE and reproduce issue and then share it with us. In addtion, consider attaching your
.idea/gradle.xml
and
.idea/misc.xml
files so we can understand your JDK configuration
Regarding the
"Failed waiting too long for the connection to be established"
there’s a issue opened ticket for it https://youtrack.jetbrains.com/issue/KMT-1153, however, this isn’t studio related