NoClassDefFoundError: android.support.v4.util.ArrayMap

前端 未结 3 1407
死守一世寂寞
死守一世寂寞 2021-01-20 20:30

Getting this error on JellyBean:

01-11 18:26:52.030: E/AndroidRuntime(16517): FATAL EXCEPTION: main
01-11 18:26:52.030: E/AndroidRuntime(16517): java.lang.No         


        
3条回答
  •  花落未央
    2021-01-20 21:22

    It happened to me when I added google-play-services_lib library project (from ASDK extras) to my IDE (IntellyJ Idea), per official google docs. The library project references google-play-services.jar which in turn needs support-v4 jar, but this dependency is not included into google-play-services_lib.

    In the logcat there were other warning about missing support-v4 classes too.

    Adding support-v4 jar manually to main application project solved the issue.

提交回复
热议问题