Invalid Project SDK

Answered

Hello ! 

Well, here's my problem. I've been working with a friend on a project (he's running IntelliJ on mac and I'm on windows) and even though we've got the same version of java running (1.8.0_201), IntelliJ keeps on saying that the sdk is invalid. Does anybody know how we could fix this ? It's a bit of pain to have to change the sdk each time one of us wants to work on the project...

0
2 comments

You have the SDKs named differently, make sure they have exactly the same name in Project Structure SDKs. The default name is 1.8 for Java 8 version.

You have it named 1.8_201, while your friend uses 1.8.0_201.

0
Avatar
Permanently deleted user

Haha thanks a lot ! Guess the (java version "1.8.0_201") was a bit misleading :')

0

Please sign in to leave a comment.