How does JDK 7's support termination affect Android development

后端 未结 2 602
-上瘾入骨i
-上瘾入骨i 2021-01-16 18:45

Oracle has announced that they stop the official updates for JRE 7 and JDK 7.

As much as I know, Google doesn\'t say anything about JDK 8, I guess the recom

2条回答
  •  青春惊慌失措
    2021-01-16 19:07

    It looks like Google doesn't officially support the JDK 8 for Android development. See paxdiablo's answer.

    But let me add some thoughts.

    I wanted to try using the JDK 8 anyway. So I downloaded and installed it, and used it (and Apache Ant) to build a simple Android app.

    The app doesn't use any features which are new to Java 8, such as lambdas. In addition, Ant passed a parameter to javac asking it to emit bytecode compatible with older JREs.

    The app compiled fine.

    The app requires that I root my phone before running it. I haven't done so yet, and haven't tested the app yet either.

    Please ping me with a comment in a few weeks. Ask me to update this answer and to let you know whether or not the app worked.

提交回复
热议问题