NoClassDefFoundError when running Instrumentation test with ant

后端 未结 6 965
忘掉有多难
忘掉有多难 2020-12-20 18:07

(This is an Android SDK tools v17 problem. Expect a fix in v18)

I have a test target project A, and a tester project B.

Project A has FlurryAgent.jar in it

6条回答
  •  爱一瞬间的悲伤
    2020-12-20 18:24

    Since this post was the first in search engine results when I entered "java.lang.NoClassDefFoundError: com.flurry.android.FlurryAgent" and my issue was not related to Ant at all, I thought I'd add some info for people who might be scratching their heads after re-installing the ADT.

    Basically, in Eclipse when you add an external library in the Java Build Path dialog, don't forget to also switch to the Order and Export tab and tick that library's name in the list. This is needed so that the library is found at run-time, not only at compile time :)

提交回复
热议问题