annotation-processor Questions
2
Solved
How can I configure IntelliJ IDEA to have Annotation processors enabled by default?
Currently, I have to enable it manually for every imported project.
Possibility asked 9/6, 2017 at 8:3
1
Solved
I have an Android application module (A) and an Android library module (B). Both (A) and (B) contain these same dependencies:
dependencies {
implementation 'com.jakewharton:butterknife:8.8.1'
an...
Turnspit asked 5/8, 2018 at 12:34
1
Gradle version: 5.1
Java version: 11
I have the following task defined in gradle file to generate QueryDSL classes:
task generateQClasses (type: JavaCompile) {
source = sourceSets.main.ja...
Minoru asked 11/6, 2020 at 9:12
3
Solved
I have used Data binding in my existing code and now I am migrating to Room for persistence.
I have followed the steps mentioned in Florina's Blog for room
My Code builds fine without java code err...
Standoffish asked 20/1, 2018 at 13:5
2
For instrumented tests, I have a TestApplication that creates a TestComponent, but the file is not generated anymore (Error:/xxx/TestApplication.java:16: The import.xxx.DaggerTestApplicationCompone...
Wynn asked 27/7, 2016 at 20:59
4
Solved
I'm building an annotation processor, and I recently switched from using the default annotationProcessor type to kapt, using the kotlin-kapt plugin.
I was debugging my processor by using the comma...
Coinsurance asked 22/5, 2017 at 17:14
2
I'm implementing an annotation processor to make sure that the elements marked with an annotation are instances of a class that implements a certain interface, or are uses of types that implement a...
Awlwort asked 10/2, 2017 at 16:43
2
I have been learning about annotations and what an annotation processor is. I was looking at Java examples and there seems to be a proper way to do it. However, in Scala, I do not get a proper webs...
Houphouetboigny asked 18/10, 2019 at 2:13
3
Solved
I have written a simple Annotation Processor (just for fun) that will generate some boilerplate code that I have been writing in my previous project. It actually generates a module like following b...
Palaver asked 27/7, 2019 at 18:50
1
Solved
In my Android Application I have an annotation processor which generates files using JavaPoet and places them under the package generated.schema.
The files are generating correctly. Whenever I use...
Kalikalian asked 21/6, 2019 at 6:36
3
I have successfully run annotation processor for CLASS level retention annotations via command prompt compiling using Java 8.
However, when I tried to configure the annotation processor in eclips...
Prase asked 14/4, 2017 at 3:43
1
Within my Android projects I can specify Gradle constants as follows:
buildConfigField 'Boolean', 'analyticsEnabled', 'false'
and access them in my Android application like this:-
public boolea...
Wahkuna asked 18/10, 2017 at 8:29
9
I am attempting to add a maven repository to my Android Studio project.
When I do a Gradle project sync everything is fine. However, whenever I try to build my apk, I get this error:
Execution fai...
Innumerable asked 24/3, 2017 at 7:17
1
I just want to use bufferknife and drag2 in my system app, I have built my app with the command mm.
I have tried every possible method I could find, but failed! I've only found the below Android.m...
Jacinda asked 27/4, 2018 at 10:34
0
I am trying to use Mapstruct to do some nested mapping and with Lombok. As according to their latest specification mapstruct 1.2 works out of the box with Lombok.
Here is my code:
Source Classes...
Landre asked 12/2, 2018 at 18:54
6
This is the following error I am getting while adding a new gradle dependency to my android project. And this error is not project specific. I am getting the same error if I am adding the plugin in...
Mesenchyme asked 20/11, 2016 at 11:20
1
Solved
How can I get package name, generic type and Parametrized type from a type from a field element in Annotation processor?
Say, if Element.asType returns java.util.List<String>, I want to get ...
Gamine asked 21/6, 2017 at 20:0
1
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 annotationProce...
Clubhaul asked 31/5, 2017 at 10:22
2
Solved
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 ...
Casebook asked 11/3, 2017 at 15:6
3
Solved
I have the following code in my library:
@Documented
@IntDef({OpacityAnimationType.NONE,
OpacityAnimationType.BLINKING,
OpacityAnimationType.SHINY,
OpacityAnimationType.AURA,
})
public @interfa...
Preston asked 21/3, 2017 at 1:49
1
Solved
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 annotat...
Zohar asked 6/3, 2017 at 9:36
1
© 2022 - 2024 — McMap. All rights reserved.