androidstudio set java version 1.7

后端 未结 3 1573
鱼传尺愫
鱼传尺愫 2021-01-17 22:17

I\'m trying to use java version 1.7 with android studio but unfortunately it is not working properly... If set the version in File->Other settings -> Default pro

相关标签:
3条回答
  • 2021-01-17 22:32

    No... there is no settings to change. Android SDK don't support full java 7 syntax, so you can't use it.

    Note that java.nio.* (new in java 7 API) is supported by latest android version.

    0 讨论(0)
  • 2021-01-17 22:48

    You can change it in new Android studio version(0.8.X)

    FIle-> Other Settings -> Default Settings -> Compiler (Expand it by clicking left arrow) -> Java Compiler -> You can change the Project bytecode version here

    enter image description here

    0 讨论(0)
  • 2021-01-17 22:50

    You can change jdk version from File > Other settings > Default Project structure. Then JDK location:

    0 讨论(0)
提交回复
热议问题