Are you using Guice-noaop?

Moandji

--
www.moandjiezana.com

Sent from my phone
On 1 Apr 2011 03:41, "James Moore" <[email protected]> wrote:
> What's this error trying to tell me? I'm playing with Guice on
> Android, and I create a trivial injector like this:
>
> Module m = new Module()
> {
> @Override
> public void configure(Binder binder)
> {
> }
> };
> com.google.inject.Guice.createInjector(m);
>
> (Not expecting this to do anything useful, of course)
>
> And what I get is:
>
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): FATAL EXCEPTION: main
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374):
> java.lang.NoClassDefFoundError: javax.inject.Provider
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> com.google.inject.internal.MoreTypes.canonicalizeForKey(MoreTypes.java:
> 81)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> com.google.inject.Key.<init>(Key.java:119)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> com.google.inject.Key.get(Key.java:212)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> com.google.inject.spi.Elements$RecordingBinder.bind(Elements.java:262)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> com.google.inject.internal.InjectorShell
> $RootModule.configure(InjectorShell.java:276)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:
> 223)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> com.google.inject.spi.Elements.getElements(Elements.java:101)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> com.google.inject.internal.InjectorShell
> $Builder.build(InjectorShell.java:133)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
>
com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:
> 103)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> com.google.inject.Guice.createInjector(Guice.java:95)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> com.google.inject.Guice.createInjector(Guice.java:72)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> com.google.inject.Guice.createInjector(Guice.java:62)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> com.banshee.Learn.onCreate(Learn.java:20)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1047)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 1722)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 1784)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> android.app.ActivityThread.access$1500(ActivityThread.java:123)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:939)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> android.os.Looper.loop(Looper.java:123)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> android.app.ActivityThread.main(ActivityThread.java:3839)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> java.lang.reflect.Method.invokeNative(Native Method)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> java.lang.reflect.Method.invoke(Method.java:507)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:841)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
> 03-31 18:01:05.693: ERROR/AndroidRuntime(8374): at
> dalvik.system.NativeStart.main(Native Method)
> 03-31 18:01:05.740: WARN/ActivityManager(12695): Force finishing
> activity com.banshee/.Learn
>
> I'm using guice-3.0-no_aop.jar. I tried experimenting with adding
> javax.inject.jar, but that didn't change anything.
>
> --
> You received this message because you are subscribed to the Google Groups
"google-guice" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
[email protected].
> For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to