NoClassDefFoundError at Google Play Services V2 library

后端 未结 8 1274
無奈伤痛
無奈伤痛 2020-11-28 11:27

I get the following exception when trying to use the Google Play Services V2 library after following the official tutorial.

java.lang.NoClassDefFoundError: c         


        
8条回答
  •  野性不改
    2020-11-28 12:32

    if you are using

    compile 'com.google.android.gms:play-services:9.0.2'
    

    change it to individual ones such as

    compile 'com.google.android.gms:play-services-location:9.0.2'
    

    also add compile 'com.android.support:multidex:1.0.1' if you have multiDexEnabled=true

提交回复
热议问题