Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Failure [INSTALL_FAILED_DEXOPT] Getting this error frequently on Android Studio ?

I am unable to install and run my app in android studio. Went through numerous forums which advised cleaning and rebuilding. Tried all these. This happens even when i am running an app on an emulator for the first time(app run first time + emulator run first time). I also getting a message from the emulator to uninstall and reinstall package "Installation failed since the device possibly has stale dexed jars that don't match the current version (dexopt error). In order to proceed, you have to uninstall the existing application.

WARNING: Uninstalling will remove the application data!

Do you want to uninstall the existing application?"

The application dint get installed on the first place. Why is this happening. I tried default android emulator as well as genymotion - still it is not working.

1 Answer

An update this happens only on Android Studio. I have tried resetting the Android studio as well.