解决Android Studio编译后安装apk报错:The APK file does not exist on disk
来源:互联网 发布:unity3d室内漫游下载 编辑:程序博客网 时间:2024/06/05 18:04
1、错误描述
今天用Android Studio编译应用后安装APK的时候,报错了,错误如下所示:
- 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
转自http://blog.csdn.net/ouyang_peng/article/details/51243441
阅读全文
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进阶之旅------>解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- Android Studio编译后安装apk报错:The APK file does not exist on
- 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
- 解决Android studio 编译时报错debug.apk does not exist on disk. Error while Installing APK
- 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
- Android 6.0 开机流程
- Jsoup——爬虫工具的使用
- 微信小程序添加web-view业务域名,"不支持打开非业务域名"解决办法
- 解决安卓webview不支持input type=file问题
- 【第五届蓝桥杯】打印图形
- 解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- python里使用正则表达式
- 【XML】xml 存档
- Android JavascriptBridge 详解(二)
- Android官方TODO-MVP项目分析(上)---View 层 Presenter 层以及 Contract 分析
- 这么多前端优化点你都记得住吗?
- java基础之集合框架--LinkedHashMap深入理解
- Java-DBCP连接池使用方法
- TensorFlowOnSpark