I have a sample project that has a gradle dependency to support library
compile 'com.android.support:support-v4:23.1.1'
When I run program this sometimes this exception occures:
Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.monkeyPatchExistingResources
I searched and find out I should add this dependency to gradle:
compile "com.android.support:support-core-utils:23.3.0"
or compile "com.android.support:support-core-utils:24.2.0"
So I added dependency to gradle, but this time when I try to run app I get this error:
Error:Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
What should I do?