delete_failed_internal_error安装失败 解决Ubuntu 16.04 上Android Studio2.3上面运行APP时提示DELETE_FAILED_INTERNAL_ERROR Error while Installing APKs的问题

一、错误提示

二、最简单的解决方式

使用Android Studio (IDEA 2018.3.5)进行开发时,无论是模拟器还是,USB连接手机,都是无法安装和启动APP。后来发现是IDEA中,设置的Instant Run的相关设置出了问题。

INSTANT Run正如上图中所示的那样,能够在App运行时,将IDE中的修改实时显示出来,十分有用。可视上面的错误提示是这个地方出了问题,具体原因先不去深究,能先跑起来APP即可。有知道原因的网友,欢迎留言交流。

 

三、原因与其它方案

方案1

stackoverflow DELETE_FAILED_INTERNAL_ERROR Error while Installing APK 文章中,对原因进行了说明:

This worked for my xiaomi redmii note 4 after allowing developer options and allowing USB debugging

go to settings-> developer options-> uncheck Turn on MIUI optimization Restart your device and now install the app.

也就是可能开启了开发者模式和USB调试的设置,取消相关的设置,然后重启手机就可以了,感兴趣的亲们可以去尝试一下。

方案2

In my case clean project and rebuild works, no need to disable instant run and restart.

方案3 DELET Build folder and rebulit the android project.

参考文章

解决Ubuntu 16.04 上Android Studio2.3上面运行APP时提示DELETE_FAILED_INTERNAL_ERROR Error while Installing APKs的问题

猜你喜欢

转载自www.cnblogs.com/arxive/p/10447618.html