Libraries in SDK 17 - android

穿精又带淫゛_ 提交于 2019-12-17 21:09:03

问题


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


回答1:


Quoting Xav:

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

  • http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17 shows how to fix the problem with nice pictures of what the project should look like.

  • http://tools.android.com/recent/dealingwithdependenciesinandroidprojects (this was linked from the blog post and from the release notes) explains in detail how the new dependency system works.




回答2:


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 !



来源:https://stackoverflow.com/questions/9846586/libraries-in-sdk-17-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!