无法将应用程序上传到虚拟设备
问题描述:
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?
这是我在尝试在GenyMotion虚拟设备上运行我的应用程序时弹出窗口。无法将应用程序上传到虚拟设备
Installing com.example.engineering.app
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.engineering.app"
pkg: /data/local/tmp/com.example.engineering.app
Failure [INSTALL_FAILED_DEXOPT]
这是控制台错误消息。
奇怪的是,即使有一个新的干净的“你好世界”项目,我也会得到同样的错误。在更新Android Studio之前,它工作得很好。有些东西搞砸了,我不确定是什么。
我不知道该怎么做。我怀疑这是GenyMotion相关,但谁知道。我试着模拟一个新的设备并重新安装。
答
我认为你运行在API10模拟器上。我还假定您已尝试在尝试重新安装之前自行删除应用程序。你可能打64k方法的限制。尝试在API19模拟器中运行,看看你是否有同样的问题。