开发者

Unit Testing Android project gets a NoClassDefFoundError for 3rd Party Jars

开发者 https://www.devze.com 2023-01-22 08:27 出处:网络
I\'m trying to run unit tests on my Android app and I\'m getting a NoClassDefFoundError when referencing 3rd party jars.

I'm trying to run unit tests on my Android app and I'm getting a NoClassDefFoundError when referencing 3rd party jars.

The classes in those jars are only referenced by the app itself, not the unit tests. The jars are on the apps classpath and have been exported in the eclipse settings to allow tyhem to be found by dependant apps - which, of course, the test app is.

Thanks in advance.

p.s. Please don't simply tell me that my jars aren't on the classpath - I can see that, I'm just not seeing how to get them on the c开发者_如何转开发lasspath...


Nevermind - it looks like I can use the google-api jars and they should work.

0

精彩评论

暂无评论...
验证码 换一张
取 消