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

前端 未结 12 849
春和景丽
春和景丽 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:47

    I had this problem because I had the google-play-services.jar in my libs folder, while including the play services in build.gradle like this:

    dependencies {
      ...
      compile 'com.google.android.gms:play-services:5.0.89'
      ...
    }
    

    So I deleted the google-play-services.jar from the libs folder and the app was working fine again

提交回复
热议问题