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

今天在使用 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(自行准备梯子)

你可能感兴趣的:(Android学习笔记,android,android,studio,app)