Search code examples
androiddalvik

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


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?


Solution

  • 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"
    }