E/dalvikvm: Could not find class 'android.util.ArrayMap'

ぃ、小莉子 提交于 2019-12-11 06:18:08

问题


When I run my app on emulator, Android Studio shows this error:

E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.Restarter.getActivities

How can I solve that?


回答1:


ArrayMap is in the Support Library. You need to add it to the dependencies in build.gradle.

dependencies {
    ...
    compile "com.android.support:support-core-utils:24.2.0"
}


来源:https://stackoverflow.com/questions/39519754/e-dalvikvm-could-not-find-class-android-util-arraymap

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!