2

I have a question to which I have not found an answer, sorry if repeated I upgraded to sdk and ADT 17 and since then every time I open a project leading, for example, advertising admob google gives me error:

Could not find class 'com.google.ads.AdView' ...

This strikes me in all projects that include libraries (jars)

I have read about in this SDK has changed something about it, but my English is not very good (use google translator) and I understand that I am doing wrong.

I appreciate any help.

Best regards

user986689
  • 111
  • 10

2 Answers2

5

Quoting Xav:

If you have ClassDefNotFoundError after updating to r17, make sure to read the following links:

Community
  • 1
  • 1
CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • 1
    If you have references to jars that are not in the ‘libs’ folder, for example if you use ‘classpath variable’, you can resolve the NoClassDefFoundError issue with the new ADT 17 by exporting the references. To export the references: simply go to “Properties > Java Build Path > Order and Export”, and check all the references you want exported. – easycheese Mar 24 '12 at 16:39
0

Well, after hours of research , I found a simple solution.

  • Click on your Android Project
  • Select Properties
  • Select Java Build
  • Path Select Order and Export
  • Check all your references

Thats all !

Shiv
  • 1,269
  • 11
  • 20