IntelliJ Build Error Context Mismatch

前端 未结 13 1823
梦谈多话
梦谈多话 2020-11-30 07:34

I want to use IntelliJ IDEA 15 instead of Android Studio, but I have a problem with building. I get the following error:

Gradle sync failed: The newly create         


        
13条回答
  •  日久生厌
    2020-11-30 08:01

    For MacOSX, what solved the problem for me was to point the SDK in IntelliJ to Contents/Home. For example:

    This:

    /Users//.sdkman/candidates/java/14.0.1-zulu/zulu-14.jdk/Contents/Home

    instead of this:

    /Users//.sdkman/candidates/java/14.0.1-zulu

    It is working with the latest, at this time, Java (14.0.1-zulu), Gradle (6.5) and Kotlin (1.4-M2).

提交回复
热议问题