I am unable to run app from android studio to my samsumg phone running android 2.3.6. I am getting Application installation Failed popup refer below screenshot.
Replace this 'compile files('libs/libGoogleAnalyticsServices.jar')' with this 'com.google.android.gms:play-services-analytics:8.3.0'
Also I have the same problem. To make it work I had to remove "third party library" from dependencies. Or try this: https://developer.android.com/tools/building/multidex.html
Disable Instant Run
.
Android Studio -> Preferences -> Instant Run
When i got this error, i was using a Nexus 4 in the AVD-Manager. By default this device was created with 500MB internal storage. I increased the storage to 2048MB and the "stale dexed" error was gone.
To increase the internal Storage:
I solved this by Wiping data .
Android Studio -> AVD Manager -> Actions -> Wipe Data
It seems like your emulator low on disk space. But after you increase your disk space you still get error.
I faced the same problem, increase disk space and do factory reset for the emulator worked as well for me. To reset your emulator go to Settings -> Backup and Restore inside the emulator then reset.