Simple android application with roboguice throwing exceptions

后端 未结 2 650
故里飘歌
故里飘歌 2021-01-21 13:56

I have a very simple application that works but when i add roboguice it throws

java.lang.RuntimeException: Unable to instantiate application com.MyFirst

2条回答
  •  爱一瞬间的悲伤
    2021-01-21 14:19

    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.

提交回复
热议问题