While launching my application the event bus service gives an error for
java.lang.NoClassDefFoundError: android/app/assist/AssistContent
at java.lang.Class.getDeclaredMethods(Native Method)
at java.lang.Class.getPublicMethodsRecursive(Class.java:894)
at java.lang.Class.getMethods(Class.java:877)
at org.greenrobot.eventbus.SubscriberMethodFinder.findUsingReflectionInSingleClass(SubscriberMethodFinder.java:157)
at org.greenrobot.eventbus.SubscriberMethodFinder.findUsingInfo(SubscriberMethodFinder.java:88)
at org.greenrobot.eventbus.SubscriberMethodFinder.findSubscriberMethods(SubscriberMethodFinder.java:64)
at org.greenrobot.eventbus.EventBus.register(EventBus.java:136)
at com.sharefile.mvvm.services.eventBus.EventBusService.register(EventBusService.java:33)
if I am consuming the public api
@TargetApi(23)
public final void onProvideAssistContent(AssistContent var1) {
// some stuff
}
for Pre Marshmallow devices, I have tried the http://greenrobot.org/eventbus/documentation/faq/ link even with subscriber-index.