Android开发调试Installation failed since the device possibly has stale dexed jars

本文介绍了如何解决Android应用安装失败的问题。当遇到由于dexedjar文件版本不匹配导致的安装失败时,可以通过在AndroidStudio中选择Build>CleanProjects来清除项目缓存,然后再重新运行应用程序,以此解决该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天写完代码运行时,出现了程序安装失败的对话框:

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?

已运行就是这样,死活没办法,最后搞了一晚上,终于找到了答案,AndroidStudio-> Build -> Clean Projects  然后等下面任务完成后,重新运行就可以了。

转载于:https://www.cnblogs.com/hua-hahaha/p/4403433.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值