Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode and Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode

前端 未结 12 852
春和景丽
春和景丽 2020-12-11 01:19

I created android application and try to add admob to it. but it not works. can anyone help me to fix this error.

[2014-04-09 15:16:51 - Dex Loader] Unable t         


        
12条回答
  •  醉酒成梦
    2020-12-11 01:26

    I had this problem, and this problem too:

    java.lang.NoClassDefFoundError: com.google.ads.AdView

    Despite many hours of following all solutions listed the only way I could get my app to work was to use the AdMob banner example here.

    And re-build my project around it, copying my files in to that project. If you are stuck, try it.

    Don't know why it worked, but now it does. Something in my project was very wrong. Now I can carry on with my work. I love Google/Android, but really what a mess!

提交回复
热议问题