Cannot create after upgrading to Android Studio 2.3

When you try to create my project, two warnings appear:

Warning: using incompatible plugins to handle annotation: android-apt. This can lead to unexpected behavior.

as well as at the end of all binding errors:

A warning. The following parameters 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 handlers and removed all apt links and changed this:

apt 'com.jakewharton: butterknife compiler: 8.2.1'

:

annotationProcessor 'com.jakewharton: butterknife compiler: 8.2.1'

but it didn’t work.

+5
source share
4 answers

You can minimize the build gradle tools version from 2.3.0 to 2.2.3 to avoid a warning like this

 classpath 'com.android.tools.build:gradle:2.2.3' 
+3
source

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

+7
source
0
source

after update i. I also have this situation. Remove any apt as "com.neenbedankt.gradle.plugins:android-apt:1.8" from the path to the dependency classes

but before that .. invalidate the AS cache / restart and clear the gradle.

then

 dependencies { classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1' } 

then

 apply plugin: 'com.jakewharton.butterknife' 

then

 compile "com.jakewharton:butterknife:8.5.1", annotationProcessor "com.jakewharton:butterknife-compiler:8.5.1" 

lastly..put this is in the last module of the application

 configurations.all { resolutionStrategy { force "com.android.support:support-annotations:25.2.0" } } 
0
source

Source: https://habr.com/ru/post/1265070/


All Articles