“java.lang.NoClassDefFoundError: com.google.android.gms.R$string error” After adding “libs/mpandroidchartlibrary-2-1-6.jar”

后端 未结 4 1998
慢半拍i
慢半拍i 2021-01-07 03:52

eI found this error after adding compile files(\'libs/mpandroidchartlibrary-2-1-6.jar\'). It work properly before adding mpandroidchartlibrary-2-1-6.jar

FAT

4条回答
  •  [愿得一人]
    2021-01-07 04:04

    If the problem persists even after enabling multidex and everything make sure you have compiledSdkVersion compatible with the build tools...

    I am not sure but I had some app with this and the problem persisted:

    compileSdkVersion 25
    buildToolsVersion "26.0.2"
    

    It worked after changing to something like this:

    compileSdkVersion 25
    buildToolsVersion "25.0.3"
    

提交回复
热议问题