我正在尝试将 RobuGuice 用于我的 Sony SmallApplication,我尝试像在 RoboActivity 中那样创建一个 RoboSmallApplication(这里是代码 - https://gist.github.com/abyu/6447828)。但是当我这样做并尝试在 Android 上运行我的应用程序时,我收到以下错误,
java.lang.RuntimeException: Unable to create service com.skk.texting.MainActivity: com.google.inject.ProvisionException: Guice provision errors:
1) null returned by binding at roboguice.config.DefaultRoboModule.configure(DefaultRoboModule.java:138)
but roboguice.inject.ContentViewListener.activity is not @Nullable
while locating roboguice.inject.NullProvider<android.app.Activity>
at roboguice.config.DefaultRoboModule.configure(DefaultRoboModule.java:138)
while locating android.app.Activity
for field at roboguice.inject.ContentViewListener.activity(Unknown Source)
at roboguice.inject.ContentViewListener.class(Unknown Source)
while locating roboguice.inject.ContentViewListener
for field at com.skk.texting.RoboSmallApplication.ignored(Unknown Source)
while locating com.skk.texting.MainActivity
有人可以帮我解决这个问题。谢谢