Questions tagged [android-apt]

Gradle plugin for Android projects that controls annotation processing features.

Questions relating to the android-apt plugin for Gradle.

25 questions
102
votes
5 answers

Incompatible plugins for android-apt after upgrading to Android Studio 2.3

After upgrading from 2.2 to 2.3 I see this warning and when I try to compile the project I see this compilation error How can i solve this issue without downgrading to a previous gradle version? Is there any update of android-apt that can solve…
Bronx
  • 4,480
  • 4
  • 34
  • 44
21
votes
2 answers

New Jack toolchain crashes when using android-apt plugin

I'm trying to build a simple project with the new Jack toolchain. My project relies on android-apt plugin (it uses some annotation processing tool, but build error occures, even before I tried to add this tool). Here is my module build script (I'm…
netimen
  • 4,199
  • 6
  • 41
  • 65
15
votes
1 answer

Dagger 2 with Android Studio 3.0 Preview (Canary 2) using annotationProcessor instead of android-apt

"A long time ago in a galaxy far, far away...." Ok, long story short - I decided to give Android Studio 3.0 Preview (Canary 2) a shot and I cannot make it work with Dagger 2 using annotationProcessor instead of android-apt. The error message I get…
8
votes
1 answer

annotationprocessor and apt configure equivalent

I'm using AndroidAnnotaion, but due to Android Studio 2.3 and Gradle 2.3.0, they said android-apt was obsoleted. And annotationProcessor is a new one. so, I want to know how can I configure annotationProcessor like I do with apt before. If I…
7
votes
2 answers

Android Studio 2.3 update : Warning:Using incompatible plugins for the annotation processing: android-apt. This may result in an unexpected behavior

So, I have read all the questions I could find on this site regarding this issue. I have also had a chat in comments with one of the developer with similar issue, who was able to solve it. I dont have apt or annotationProcessor written any where in…
legalimpurity
  • 180
  • 3
  • 13
5
votes
1 answer

Android Studio 3.0 error: android-apt is incompatible

I'm new to Android development and got a legacy project. So I installed the newest version of Android Studio and opened it. When I try to build it, I get this error: Error:android-apt plugin is incompatible with the Android Gradle plugin. Please…
5
votes
3 answers

Cannot get android-apt working

Twice already I've tried to get android-apt to work, because it's required by the 3rd-party libraries I wanted to use (AndroidAnnotations and PermissionsDispatcher), and both times I bashed my head against the wall until I got tired of hearing the…
Emiliano De Santis
  • 197
  • 1
  • 3
  • 15
5
votes
2 answers

Gradle build error in Android Studio

I am getting following error while building Android project in Android Studio 1.2.2 (fresh instalation) Error:(76, 0) Could not find property 'unitTestVariants' on com.android.build.gradle.internal.dsl.TestOptions_Decorated@261be0aa. Gradle version…
3
votes
0 answers

Gradle build not resolving generated classes

I've just updated Android Studio from 1.5 to 2.2.1 and same for Gradle. I have a project which uses an annotation processor framework (made by me) to do Dagger like Dependency Injection. This used to work just fine before the update, but now Gradle…
Aurasphere
  • 3,841
  • 12
  • 44
  • 71
3
votes
1 answer

Gradle 2.0.0-beta4 makes AndroidAnnotation doesn't work

With 'com.android.tools.build:gradle:1.5.0' and 'com.neenbedankt.gradle.plugins:android-apt:1.8', AndroidAnnotation works well with processing the annotation. But after I update to 'com.android.tools.build:gradle:2.0.0-beta4' for instant run, it…
2
votes
1 answer

NoSuchMethodError using Android Jack toolchain

I'm trying to enable Java 8 new language features by using Jack toolchain. I've removed retrolambda and android apt plugin from my Android Project but I'm getting this error: Error:Execution failed for task…
notGeek
  • 1,394
  • 5
  • 21
  • 40
2
votes
1 answer

AndroidAnnotations library fails to use classes generated by requery

I want to extract some part of my app to a library but AndroidAnnotations won't let me ;-) If I have: App - uses AndroidAnnotations - uses requery Everything works OK.. but when I do something like this: MyLibrary - uses requery App …
Mateusz Jablonski
  • 1,039
  • 9
  • 11
1
vote
0 answers

Dagger 2 - Tatarka DataBinding Conflict

I try to use Dagger 2, but I've got a errors. Adding code below doesn't help me. gradle.projectsEvaluated { tasks.withType(JavaCompile) { options.compilerArgs << "-Xmaxerrs" << "500" // or whatever number you want } } My build.gradle (:app)…
1
vote
2 answers

Android Studio : com.android.ide.common.process.ProcessException: Failed to execute aapt

Android Studio Details : 3.1.3 Gradle : 4.4 Android Plugin : 3.1.3 On Creating a new App I get this log on the Android Studio : CONFIGURE SUCCESSFUL in 19s On Building I get the below Log : Executing tasks: [:app:assembleDebug] Configuration on…
Raulp
  • 7,758
  • 20
  • 93
  • 155
1
vote
0 answers

Android apt plugin is incompatible use 'annotationProcessor' configuration instead

hi i'm trying to implement imgly SDK to my app but i get this error when i add sdk compile in Build.Gradle file . i tried to add annotationProcessor "com.google.dagger:dagger-compiler:2.6" but still doesn't work Error:android-apt plugin is…
ali
  • 189
  • 3
  • 14
1
2