Hi, I’m trying to test KMM, when I create a new KM...
# android
h
Hi, I’m trying to test KMM, when I create a new KMM project all gradles have many red lines like the attached image but there is no problem to build the project. Is there any way to fix it?
r
I've been having the same problem. I've done some Google searches, but no luck yet. I'd love it if someone has the answer to this.
f
#multiplatform
k
There is some kind of problem with Java. Here is a short instruction that let me solve this problem (this is the guide for Mac users):
Copy code
Install JDK 11:
brew tap AdoptOpenJDK/openjdk
brew install --cask adoptopenjdk11

Check if you have JDK 11 installed
For Mac it should appear under:
/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/

Choose JDK for a project
File -> Project Structure -> JDK Location:
/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
h
Fixed, thanks a lot @KamilH
r
@KamilH or @Hossein Amini, are you running Big Sur? It appears that I no longer have brew installed after the upgrade; I just want to make sure I won't break anything by reinstalling it.
k
I’m still on Catalina
r
OK. Big Sur seems to have broken a lot of Java stuff.
h
I’m on Catalina too @Russell Stewart