Gradle - Could not target platform: 'Java SE 8' using tool chain: 'JDK 7 (1.7)'

前端 未结 9 960
执笔经年
执笔经年 2020-12-12 19:57

I am trying to import Gradle project in Intellij Idea with local Gradle distrib and getting stacktrace with the following message: Could not target platform: \'Java SE

9条回答
  •  我在风中等你
    2020-12-12 20:47

    The following worked for me:

    1. Go to the top right corner of IntelliJ -> click the icon
    2. In the Project Structure window -> Select project -> In the Project SDK, choose the correct version -> Click Apply -> Click Okay

提交回复
热议问题