Getting unknown property 'classpath' with Jack compiler for Android

前端 未结 2 1144
星月不相逢
星月不相逢 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

    0 讨论(0)
  • 2021-02-12 06:57

    I was having the same issue, after a long time of researching and changes and remaking my code, I found this worked for me.. try removing all google services 9 version compiles in app dependencies and change them for this single line..

    compile 'com.google.android.gms:play-services-appindexing:8.4.0'

    when I changed my code to this it just worked perfectly

    sample image

    0 讨论(0)
提交回复
热议问题