I start working with android studio, and I successfully run my application on the emulator,
and sometimes after successful completion and when I want to start my application again,
I get the
Error [INSTALL_FAILED_DEXOPT] error
and ask me to delete my application in the emulator.
After clicking OK, I get an error Unknown Failure
And when I try to start the application again, I get another error.
Error [INSTALL_FAILED_UID_CHANGED]
I can successfully solve my program by rebuilding the project and manually deleting the package in / data / data and / data / local / tmp.
But the problem exists again and again after several starts.
What should I do to stop this problem as it makes my debugging very difficult.
Here is the error message I get:
Waiting for device.
Target device: Nexus_4_API_19 [emulator-5554]
Uploading file
local path: C:\Users\brian_000\AndroidStudioProjects\MyApplication\app\build\outputs\apk\app-debug.apk
remote path: /data/local/tmp/com.example.brian.myapp
Installing com.example.brian.myapp
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.brian.myapp"
pkg: /data/local/tmp/com.example.brian.myapp
Failure [INSTALL_FAILED_DEXOPT]
DEVICE SHELL COMMAND: pm uninstall com.example.brian.myapp
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.brian.myapp"
pkg: /data/local/tmp/com.example.brian.myapp
Failure [INSTALL_FAILED_DEXOPT]
DEVICE SHELL COMMAND: pm uninstall com.example.brian.myapp
Unknown failure
source
share