question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gradle apt error for eventBusIndex...

See original GitHub issue

I’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:closed
  • Created 8 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
chufengmacommented, Mar 23, 2016

Finally, I find the reason. It must have at least one @Subscribe method such as : `

@Subscribe
    public void onEvent(Event event) {}

then build error gone

0reactions
qianzuicommented, Aug 14, 2017

@chufengma thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found