使用multidex解决 [0, 0xffff]: 65536在6.0以上不能安装的问题

来源:互联网 发布:linux解压rar文件 编辑:程序博客网 时间:2024/05/22 00:07

心路历程

由于最初项目用到了很多的第三方库,使得项目方法过多,直接报错65535问题,查看了很多文章,最终由这篇文章解决.链接:http://blog.csdn.net/czhpxl007/article/details/50419974,

具体步骤如下:

Gradle 配置:

defaultConfig {             multiDexEnabled true}dependencies {    compile 'com.android.support:multidex:1.0.0'}

最后一步:

MyApplication extends MultiDexApplication

真是一波未平一波又起,在4.4上跑没有任何问题.

但是当项目运行在6.0的手机上时,出现了不能安装的问题报错DELETE_FAILED_INTERNAL_ERROR Error while Installing APKs,把我这个新手难倒enter image description here

在stackoverflow上找到解决办法如下:

For Android Studio on Windows :

File > Settings > Build, Execution, Deployment > Instant Run > Uncheck : Enable Instant Run

这段话不用翻译了吧

本人是个小白,但是希望有同样的小白遇到同样的问题,这文章能让你少走弯路,节省时间

2 0
原创粉丝点击