简体   繁体   English

为什么Android SDK-24需要JDK 1.8或更高版本进行编译? SDK-24中的JDK有什么区别?

[英]Why android SDK-24 needs JDK 1.8 or later to compile? What is the JDK difference in SDK-24?

When I build my project with SDK version android-24 it says requires JDK 1.8 or later to compile. 当我使用android-24 SDK版本构建项目时,它说需要JDK 1.8或更高版本进行编译。

My question is why we need JDK 1.8 version? 我的问题是为什么我们需要JDK 1.8版本? Whats the difference/changes coming in SDK android-24? SDK android-24有什么区别/变化?

Is it possible to compile project using SDK android-24 with JDK 1.7? 是否可以使用带有JDK 1.7的SDK android-24编译项目?

In Android Studio open: File > Project Structure > see if JDK location points to your JDK 1.8 directory. 在Android Studio中打开:文件>项目结构>查看JDK位置是否指向您的JDK 1.8目录。

Note: you can use compileSdkVersion 24 注意:您可以使用compileSdkVersion 24

try this.. 尝试这个..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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