java.lang.NullPointerException (no error message) APK building

前端 未结 6 1564
隐瞒了意图╮
隐瞒了意图╮ 2021-02-19 08:44
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        maven {
            url \"h         


        
6条回答
  •  一向
    一向 (楼主)
    2021-02-19 09:07

    Android compiles by default with Java 7 but your project might be using some Java 8 features. If you recently switched from Oracle JDK to Open JDK, make sure you are using Java 8. In your terminal, if you run java -version, the output should be something like:

    openjdk version "1.8.0_222"
    OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10)
    OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)
    

提交回复
热议问题