java.lang.NoClassDefFoundError: com.google.android.gms.R$string

后端 未结 8 1326
借酒劲吻你
借酒劲吻你 2021-01-18 08:00

I am having a little trouble with the complier, Same code I use on Nexus 5, no error. as Soon as I use it in Tablet, it crash right away and the error said

java.la

相关标签:
8条回答
  • 2021-01-18 08:50

    In my case, I changed the theme of my app in the AndroidManifest.xml file and cleared out my styles.xml file (because I'm a noob and hoped to just use an out-of-the-box android theme). After launching the app, I assume there were zombie references to the old theme that caused the error because, after reverting my changes, the error disappeared.

    0 讨论(0)
  • 2021-01-18 08:57

    I did remove

        compile 'com.android.support:multidex:1.0.1' 
    

    and sync project. After added this line and synced again. Next, cleaned project to remove old dex files (may cause problem with dex archives merging), and it helped.

    0 讨论(0)
提交回复
热议问题