Gradle apt error for eventBusIndex...
See original GitHub issueI’ve wrestled with this for the past couple of hours or so, but cannot get gradle to build my index. I get the following error:
warning: The following options were not recognized by any processor: '[eventBusIndex]'
Here are snippets of my build.gradle file. I also have apt working for dagger 2.0, so I know my apt configuration works:
buildscript {
repositories {
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.21.5'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
}
}
repositories {
mavenCentral()
}
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'me.tatarka.retrolambda'
dependencies {
compile 'org.greenrobot:eventbus:3.0.0'
apt 'org.greenrobot:eventbus-annotation-processor:3.0.1'
}
apt {
arguments {
eventBusIndex "com.example.EventBusAppIndex"
}
}
Any pointers on what I may be missing?
Thanks a lot for a fantastic library btw. I’ve used 2.x version extensively in past projects
Issue Analytics
- State:
- Created 8 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
No option eventbusindex passed to annotation processor ...
I'm trying to set up a simple subscriber in my Android application using Greenrobot's Eventbus, but I am getting a gradle build error....
Read more >No Option Eventbusindex Passed To Annotation Processor
I'm trying to set up a simple subscriber in my Android application using Greenrobot's Eventbus but I am getting a gradle build error.I...
Read more >EventBusAnnotationProcess引入问题:android-apt plugin is ...
EventBusAnnotationProcess引入问题:android-apt plugin is incompatible with the Android Gradle plugin.
Read more >Event bus for Android and Java that simplifies communication ...
Gradle apt error for eventBusIndex... buildscript { repositories { mavenCentral() maven { url 'https://maven.fabric.io/public' } } dependencies { classpath ...
Read more >解决android-apt plugin is incompatible with the Android Gradle ...
1; 2. 由于网上很多介绍EventBus 3.0 是基于gradle 2.2.0之前的的版本,而 Gradle 3.0 之后,Android官方提供了 annotationProcessor 来代替 android-apt ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Finally, I find the reason. It must have at least one
@Subscribe method
such as : `then build error gone
@chufengma thank you!