简体   繁体   中英

How do I upgrade java from 1.8 to 11

I have an android app I am building using Android Studio. All of a sudden I received a build.gradle warning: Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.

the problem I see refers to the second line in this code;

plugins {
id 'com.android.application'
id 'kotlin-android'
}

I am running Android Studio on a MacBook pro. I have tried various fixes but most are for PC and since I am using a Mac they don't seem to help.

Does anyone have a solution.

Setting -> BuildTool -> Gradle -> choose java 11 or download something as request

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM