3

I am trying to integrate Flurry analytic in android app.

I have integrate successfully but it gives runtime error of "java.lang.NoClassDefFoundError: com.flurry.android.FlurryAgent" in my onStart method.

Any suggestion??

Padma Kumar
  • 19,893
  • 17
  • 73
  • 130
Piyush
  • 2,589
  • 6
  • 38
  • 77

2 Answers2

6

In your Android project, create a directory named libs at the root of your project (next to src/, res/, etc.)

Locate the JAR file for the library you want to use and copy it into the libs/ directory.

Setting Up a Project to Use a Library:

More refer here:

Padma Kumar
  • 19,893
  • 17
  • 73
  • 130
  • You can also add it as an external JAR. But make sure it is also checked under Java Build Path -> Order and Export Tab. – Nitzan Wilnai Mar 26 '15 at 23:59
-1

I had that same error…

What worked for me was: I already had a libs folder in the same hierarchy as my src & res folders. The FlurryAgent.jar file was saved on my Desktop. I simply right clicked on the FlurryAgent file, copied it. Then I pasted the file into the libs folder in Eclipse. Eclipse automatically copied the FlurryAgent.jar file into the “Android Dependencies” folder also.

Gene
  • 10,819
  • 1
  • 66
  • 58
  • Whilst this is your answer on http://stackoverflow.com/questions/10784443/class-not-found-exception-on-android/15520060#15520060 you shouldn't be re-posting it. You should be advising the user in comments by providing the link. – Popeye Apr 12 '13 at 12:29