Getting unknown property 'classpath' with Jack compiler for Android

前端 未结 2 1153
星月不相逢
星月不相逢 2021-02-12 06:07

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 06:56

    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

提交回复
热议问题