Android Studio编译后安装apk报错:The APK file does not exist on disk
来源:互联网 发布:疯狂的美工好不好 编辑:程序博客网 时间:2024/05/22 06:36
1、错误描述
今天用Android Studio编译应用后安装APK的时候,报错了,错误如下所示:
The APK file build\outputs\apk\OYP_2.3.4_I2Base_6476_official_debug.apk does not exist on disk.Error while Installing APK
- 1
- 2
- 1
- 2
如下图所示
2、解决方法
1、尝试了Build -> Clean Project再编译,还是无效
2、尝试重启Android Studio无效
然后我去打开build\outputs\apk\目录,发现里面编译好了APK文件,不过文件名确实:
OYP_2.3.4_I2Base_6478_official_debug.apk
如下图所示:
因此原因就是,Android Studio编译好之后的APK文件是
OYP_2.3.4_I2Base_6478_official_debug.apk
而它要安装APK文件名确实
OYP_2.3.4_I2Base_6476_official_debug.apk
因此就会报错了。google查了一下错误,在http://stackoverflow.com网站上有一篇关于此错误的解决方法,链接如下所示:
http://stackoverflow.com/questions/34039834/the-apk-file-does-not-exist-on-disk
解决方法:
如下图所示:
第一步:点击Android Studio侧边栏的Gradle按钮,如下所示
第二步:刷新下Gradle的配置
第三步:重新编译即可,不会再报错。
作者:欧阳鹏 欢迎转载,与人分享是进步的源泉!
转载请保留原文地址:http://blog.csdn.net/ouyang_peng
0 0
- Android Studio编译后安装apk报错:The APK file does not exist on disk
- Android Studio编译后安装apk报错:The APK file does not exist on disk
- 解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- 解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- 解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- 解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- 解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- 解决Android Studio编译后安装apk报错:The APK file does not exist on
- Android Studio编译后安装apk报错:The APK file does not exist on
- 我的Android进阶之旅------>解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- Android Studio The APK file does not exist on disk
- Android Studio The APK file does not exist on disk
- Android Studio 报 The APK file does not exist on disk
- The APK file **** does not exist on disk
- The APK file does not exist on disk
- EmptyThrowable: The APK file does not exist on disk.
- The APK file does not exist on disk
- The APK file does not exist on disk
- java位运算总结
- 蓝桥杯JAVA回文数
- webpack
- 蓝桥杯 BASIC-1 基础练习 闰年判断
- Logger 日志打印库详解
- Android Studio编译后安装apk报错:The APK file does not exist on disk
- BlockingQueue详解
- NuGet的简单使用
- http请求使用patch,后台Springmvc处理请求参数问题
- 里氏替换的七大原则
- git+github的使用-最简单的入门教程
- 图片和附件传远程服务器实现图文分离,完全解决
- 【OpenCV】笔记(9)——色彩空间和颜色处理
- linux grep命令