Two warnings show up when I try to build my project:
Warning:Using incompatible plugins for the annotation processing: android-apt. This may result in an unexpected behavior.
and also at the end of all the binding errors:
Warning:The following options were not recognized by any processor: '[android.databinding.artifactType, android.databinding.printEncodedErrors, android.databinding.minApi, android.databinding.isTestVariant, android.databinding.enableDebugLogs, android.databinding.sdkDir, android.databinding.bindingBuildFolder, android.databinding.enableForTests, android.databinding.modulePackage, android.databinding.generationalFileOutDir, android.databinding.xmlOutDir]'
I tried to enable annotation processors and removed all apt reference and changed this:
apt 'com.jakewharton:butterknife-compiler:8.2.1'
to this:
annotationProcessor 'com.jakewharton:butterknife-compiler:8.2.1'
but it didn't work.
Just replace apt
with annotationProcessor
in your build.gradle file.
And remove apt plugins wherever you see them.
You can down version of tools build gradle from 2.3.0
to 2.2.3
to avoid warning like that
classpath 'com.android.tools.build:gradle:2.2.3'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With