How to specify the JDK version in android studio?

前端 未结 5 1048
青春惊慌失措
青春惊慌失措 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 07:29

    For new Android Studio versions, go to C:\Program Files\Android\Android Studio\jre\bin(or to location of Android Studio installed files) and open command window at this location and type in following command in command prompt:-

    java -version

提交回复
热议问题