No Such Method Error when creating JUnit test

后端 未结 5 811
忘了有多久
忘了有多久 2020-12-31 10:48

I\'ve tried figuring out this problem for the last 2 days with no luck. I\'m simply trying to create an annotation based JUnit test using the spring framework along with hi

5条回答
  •  误落风尘
    2020-12-31 11:25

    I would like to share my suggestion for anyone who comes across this JUnit Testing for Android; none of the above worked for me and this was a simple fix:

    In Eclipse>>project properties>>Android>> make sure that the project you are testing is referenced under Library. 'is library' can remain unchecked

提交回复
热议问题