I got this error when I tried to run one of my apps after upgrading to RoboGuice 2.0. Whilst I do love RoboGuice and appreciate the hard work of the contributors, the project’s documentation has not had the same attention as the code.
To get things working you’ll need to add another jar in addition to roboguice2 and guice3(no aop). The new jar is “javax.inject.jar” and you can extract it from the zip distribution of Guice 3.0. After adding the new jar just add it to your libs folder as normal and try running your app again.
Are you sure you need java.inject? In theory RoboGuice doesn’t have any explicit dependencies on javax.inject
I created a trivial project and added roboguice 2.0 and guice 3.0 (no aop) to libs and added them to the build-path. I then extended from RoboActivity and tried to run the app (compilation was fine). The app force closed on startup complaining about a reference to javax.inject.provider.
If you like I can email you the project and logs. Perhaps the problem is coming from guice and not roboguice, but the only way I can get my apps to run is by adding the javax.inject jar.
I cannot thank you enough!!!!!!! Many days of googling to find this post which explained what the problem was. Its terrible that their poor documentation means many hours of frustration trying to get simple stuff to work!
Saved me a bunch of time Barry, appreciate it!