Android Studio 2.2. Preview 1 error: “Please use JDK 8 or newer”

后端 未结 6 852
别跟我提以往
别跟我提以往 2020-12-16 18:54

On trying to run Android Studio 2.2 Preview 1, it gives the following error on gradle build:

Error:Please use JDK 8 or newer.

If

6条回答
  •  渐次进展
    2020-12-16 19:48

    Use File -> Project Structure to set the SDK and JDK. I think you are modifying a generated file.

    Also try adding this in your gradle file:

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
    

提交回复
热议问题