Florian Mac Langlade
Florian Mac Langlade

Reputation: 1903

Android - Unable to use libraries

My app crashes when I try to use libraries (like Google Analytics or others).

I've searched on Google and found some help but it still doesn't work...

My lib folder is called "libs", I've got jar in the build path...

Have you got any ideas?

The error is :

java.lang.NoClassDefFoundError: com.google.analytics.tracking.android.EasyTracker

EDIT : Here my conf :

enter image description here

Thanks.

Upvotes: 0

Views: 80

Answers (1)

DigCamara
DigCamara

Reputation: 5578

If you're using Eclipse, try this

  1. Select your Project with the Mouse
  2. Right click->Properties
  3. Select Android
  4. Verify that you've selected the "Google APIs" version that you need for your project
  5. At the bottom, your Libraries should also appear. If they don't
  6. Click the Add button. Add the missing libraries. Careful, though, your libraries need to use compatible APIs to your main project.

Upvotes: 1

Related Questions