How to specify the JDK version in android studio?

前端 未结 5 1022
青春惊慌失措
青春惊慌失措 2020-11-28 06:48

Android Studio is giving me a Gradle build error that looks like this:

Error:(3, 22) compileSdkVersion android-22 requires compiling with JDK 7
5条回答
  •  攒了一身酷
    2020-11-28 07:19

    On a Mac, you can use terminal to go to /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home (or wherever your Android SDK is installed) and enter the following in the command prompt:

    ./java -version
    

提交回复
热议问题