Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't build after updating to Android Studio 2.3

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.

like image 228
Badjano Avatar asked Mar 06 '17 01:03

Badjano


2 Answers

Just replace apt with annotationProcessor in your build.gradle file. And remove apt plugins wherever you see them.

like image 149
Saeed Entezari Avatar answered Sep 21 '22 19:09

Saeed Entezari


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'
like image 28
DaoLQ Avatar answered Sep 23 '22 19:09

DaoLQ