I am just starting to use the new Android Jack compiler and use the Greenrobot Eventbus .
I got it working after a trial and error, but it seems to work when I specify the eventBusIndex parameter in 2 places - see the code below:
android { defaultConfig { javaCompileOptions { annotationProcessorOptions { // TODO: why must I specify eventBusIndex twice? --> also for each buildVariant arguments = [ 'eventBusIndex': "com.tmtron.dscontrol.EventBusIndex" ] } } } // this is a workaround to specify the Manifest for AndroidAnnotations // see: https://code.google.com/p/android/issues/detail?id=210753 applicationVariants.all { variant -> variant.variantData.variantConfiguration.javaCompileOptions.annotationProcessorOptions .arguments = [ 'eventBusIndex': "com.tmtron.dscontrol.EventBusIndex" , 'androidManifestFile': variant.outputs[0]?.processResources?.manifestFile?.absolutePath ] } }
source share