I download an android project source code from github and open it with Android Studio, but when I click the "run app" button, after some while I got this error:
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?
And I got this error in the console
$ adb push D:\work\zuoyexitong\third-part-projects\AndroidAudioRecorder\app\build\outputs\apk\app-debug.apk /data/local/tmp/cafe.adriel.androidaudiorecorder.example
$ adb shell pm install -r "/data/local/tmp/cafe.adriel.androidaudiorecorder.example"
pkg: /data/local/tmp/cafe.adriel.androidaudiorecorder.example
Failure [INSTALL_FAILED_DEXOPT]
But I'm sure I didn't install this apk before. And if I click "ok" to let Android Studio to uninstall the app, i got this error
$ adb shell pm uninstall cafe.adriel.androidaudiorecorder.example
Unknown failure (Failure)
Error while Installing APK
My Android Stuido Version is : 2.2.3 .
The project i use is here
My device's android version is 4.1.1 .
My problem looks like this and this , but they can't solve my problem.
So how to solve this problem?