Android Roboguice Exception

后端 未结 3 2032
别那么骄傲
别那么骄傲 2021-02-20 16:31

Just starting my way with Roboguice for android. Tried implementing this simple context injection but getting this exception. I googled it and ran into quite a few posts but non

相关标签:
3条回答
  • 2021-02-20 16:35

    thank you, it appears I was working with Guice 3, which is not supported by Roboguice 1.1.2. I removed Guice 3 and put Guice 2.0-no_aop and this solved my issue. Thanks again!

    0 讨论(0)
  • 2021-02-20 16:39

    Make sure to have

    • roboguice-2.0.jar
    • guice-3.0-no_aop.jar
    • jsr305-1.3.9.jar
    • javax.inject-1.jar

    and it should work.

    0 讨论(0)
  • 2021-02-20 16:52

    Download javax.inject-1.jar and add it to your build path.

    See here.

    Also, make sure you are using Guice without AOP.

    0 讨论(0)
提交回复
热议问题