greenrobot / EventBus

Event bus for Android and Java that simplifies communication between Activities, Fragments, Threads, Services, etc. Less code, better quality.
http://greenrobot.org/eventbus/
Apache License 2.0
24.68k stars 4.66k forks source link

i can't generate "MyEventBusIndex" #655

Closed yanghuaangel closed 4 years ago

yanghuaangel commented 4 years ago

i can't generate "MyEventBusIndex"

i read the guide https://greenrobot.org/eventbus/documentation/subscriber-index/

android {
    defaultConfig {
        javaCompileOptions {
            annotationProcessorOptions {
                arguments = [ eventBusIndex : 'com.example.myapp.MyEventBusIndex' ]
            }
        }
    }
}

dependencies {
    def eventbus_version = '3.2.0'
    implementation "org.greenrobot:eventbus:$eventbus_version"
    annotationProcessor "org.greenrobot:eventbus-annotation-processor:$eventbus_version"
}

but also can't generate "MyEventBusIndex"
Is it possible reason beacause the gradle verion or gladle plugin version?

greenrobot-team commented 4 years ago

I don't see anything wrong. Can you share a small example project? Or do you get an error message in your Build log?

yanghuaangel commented 4 years ago

it's my problem,now is solved

MichaelJokAr commented 4 years ago

how do you solved?