Getting unknown property 'classpath' with Jack compiler for Android

前端 未结 2 671
情书的邮戳
情书的邮戳 2021-02-12 06:22

I am trying to compile my project with the next Jack compiler. I just updated Android Studio to 2.2-Beta and my gradle plugin to 2.14.1. Here\'s my gradle file:

         


        
2条回答
  •  忘掉有多难
    2021-02-12 07:04

    Try removing the apply plugin: 'android-apt' as that's a plugin that wont be needed any longer.

    You are not using the apt tool, rather the annotationProcessor which is built into Gradle v2.2.0 and up.

    PS: Make sure you are replacing "apt" with "annotationProcessor" in your dependencies block as well. You probably wont need classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' either

提交回复
热议问题