gradle 打包出现Jack is disabled, but one of the plugins you are using supports Java 8 language features.

版权声明:转载请注明出处 https://blog.csdn.net/qq_33289175/article/details/86290148
1、
Jack is disabled, but one of the plugins you are using supports Java 8 language features.

解决办法:在build.gradle(app)里增加

jackOptions {
            enabled true
         }

defaultConfig {
        applicationId "com.hotbitmapgg.ohmybilibili"
        minSdkVersion 21
        targetSdkVersion 25
        versionCode props.getAt("versionCode") as int
        versionName props['versionName']
        jackOptions {
            enabled true
         }

    }



2、之后出现的Cannot get property 'destinationDir' on null object

解决办法:注掉build.gradle(app)中的“apply plugin: 'me.tatarka.retrolambda'”

猜你喜欢

转载自blog.csdn.net/qq_33289175/article/details/86290148