1
votes

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
Unless for some reason you named your app com.android.tools.fd.runtime or something like that, you can't, as it is not your problem. - CommonsWare

1 Answers

2
votes

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