de.greenrobot.event.EventBusException: Subscriber class dji.midware.a.e already registered to event class

java.lang.RuntimeException: Unable to create application com.android.tools.fd.runtime.BootstrapApplication: de.greenrobot.event.EventBusException: Subscriber class dji.midware.a.e already registered to event class dji.midware.d.b
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4867)
at android.app.ActivityThread.access$1900(ActivityThread.java:163)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1443)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5601)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
Caused by: de.greenrobot.event.EventBusException: Subscriber class dji.midware.a.e already registered to event class dji.midware.d.b
at de.greenrobot.event.EventBus.subscribe(EventBus.java:256)
at de.greenrobot.event.EventBus.register(EventBus.java:189)
at de.greenrobot.event.EventBus.register(EventBus.java:140)
at dji.midware.a.e.a(Unknown Source)
at dji.midware.a.a.a(Unknown Source)
at dji.sdk.SDKManager.DJISDKManager.initParams(Unknown Source)
at dji.sdk.SDKManager.DJISDKManager.initSDKManager(Unknown Source)
at com.dji.sdk.sample.common.DJISampleApplication.onCreate(DJISampleApplication.java:101)
at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:326)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4858)
... 9 more
de.greenrobot.event.EventBusException: Subscriber class dji.midware.a.e already registered to event class dji.midware.d.b
at de.greenrobot.event.EventBus.subscribe(EventBus.java:256)
at de.greenrobot.event.EventBus.register(EventBus.java:189)
at de.greenrobot.event.EventBus.register(EventBus.java:140)
at dji.midware.a.e.a(Unknown Source)
at dji.midware.a.a.a(Unknown Source)
at dji.sdk.SDKManager.DJISDKManager.initParams(Unknown Source)
at dji.sdk.SDKManager.DJISDKManager.initSDKManager(Unknown Source)
at com.dji.sdk.sample.common.DJISampleApplication.onCreate(DJISampleApplication.java:101)
at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:326)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4858)
at android.app.ActivityThread.access$1900(ActivityThread.java:163)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1443)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5601)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)

 

 

该问题主要是因为:

   大疆的sdk初始化了2次才导致该错误。可能是Application被继承导致oncreat了2次。

你可能感兴趣的:(de.greenrobot.event.EventBusException: Subscriber class dji.midware.a.e already registered to event class)