Skip to content Skip to sidebar Skip to footer

Simple Android Application With Roboguice Throwing Exceptions

I have a very simple application that works but when i add roboguice it throws java.lang.RuntimeException: Unable to instantiate application com.MyFirstApp.MyFirstApplication: j

Solution 1:

Well i found out what the problem was. i was using SDK v17+ and in that version external library's need te be placed in a "libs" folder and only in the libs folder. so all the tutorial's i found where they just put it in the assets folder where wrong.

Link to where i got the answer i was looking for: http://groups.google.com/group/roboguice/browse_thread/thread/474116b052050ae2

Solution 2:

First of all, extending from RoboApplication is a RoboGuice 1.x thing, you should really be using RoboGuice 2.0 (where you no longer need to do that). Now, for your exception, is your Application class really at com.MyFirstApp.MyApplication? If not, you would need to update the name attribute to match.

Post a Comment for "Simple Android Application With Roboguice Throwing Exceptions"