installation failed since the device possibly has stale dexed jars that don't match the current v...

来源:互联网 发布:淘宝满减活动怎么设置 编辑:程序博客网 时间:2024/06/06 12:07

今天在使用 Android Studio 安装 App 的时候遇到了一些问题, 遂在此记录一下, 以便日后查看.

installation failed since the device possibly has stale dexed jars
that don’t match the current version (dexopt error)

由于我在 android 5.0 之上使用了
compile ‘com.android.support:multidex:1.0.1’
进而提示以上错误.
解决办法就是不引用 multidex:1.0.1 包.
下面是官方对于配置方法数超过 64K 的应用分包详解.

https://developer.android.com/studio/build/multidex.html#avoid(自行准备梯子)

阅读全文
0 0