Probably asked million of times - please give me a...
# gradle
e
Probably asked million of times - please give me a hint what to do
v
Never seen this or heard of it. Do you have a reproducer?
e
message has been deleted
It is Android Studio
v
I meant a reproducer project as whole, I'm not going to try to rebuild your problem from a screenshot o_O
e
It is private project, let me DM you
It works/builds
I’m asking about representation in IDE
v
So it is just an IDE problem?
e
yes
v
Well, if IntelliJ and thus AS behaves strangely, first try:
File -> Invalidate Caches and restart
and then check whether it still behaves bad after it rebuilt its indexes
e
Let me try IntelliJ
v
AS is IntelliJ, just a customized version of it. But yeah, usually it is a bit behind. But why not first trying the option I recommended?
e
No changes
Also doesn’t work in IntelliJ since the project is KMM
v
What has one to do with the other? Why should KMM project not work in IJ?
s
I’ve had similar problem, and in my case it was because of AS using JDK 11, so when I’ve downgraded it to JDK 8 (in Project Settings) everything was fine
e
Not an option for me. Looks like i have to live with red marks in files.
Thank you people!
v
What has one to do with the other?
Why should KMM project not work in IJ?
And also, if you have an IDE problem, you should not just live with it, but report it, otherwise it cannot get fixed. 😉
s
I’m not sure, but problems like that was reproduced with broken JDK. Can you please try another JDK? The JDK configured in Project Structure.
also this may help https://youtrack.jetbrains.com/issue/KT-42241#focus=Comments-27-4486201.0-0 btw, it is hard to say what the real cause in your case
e
Ah, missed your replies. Let me check!