1

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.

DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.tell_it_dell.myapplication1" pkg: /data/local/tmp/com.example.tell_it_dell.myapplication1 Failure [INSTALL_FAILED_DEXOPT]

DEVICE SHELL COMMAND: pm uninstall com.example.tell_it_dell.myapplication1 DELETE_FAILED_INTERNAL_ERROR

How do I solve this?

Girraj Raj
  • 11
  • 1
  • 3

1 Answers1

2

What I did to fix it, is to open gradlew via cmd, and write "gradlew clean" on the project. Then pressed play button and it worked again.

Reinherd
  • 5,476
  • 7
  • 51
  • 88
  • How did you do this? Please describe the steps. I always get `gradlew command not found`. – Shubham A. Dec 16 '15 at 10:52
  • @Shubham add a dot and a slash before gradlew as `./gradlew clean` – Reinherd Dec 16 '15 at 11:59
  • 4
    The problem is resolved by disabling Instant Run in `AS 2.0 Preview 3b`. Somehow having it turned on, keeps producing INSTALL_FAILED_DEXOPT when installing any app, even if it's actually not on the device. – Shubham A. Dec 16 '15 at 13:07