解决Android Studio编译后安装apk报错:The APK file does not exist on disk
来源:互联网 发布:apache服务器搭建 编辑:程序博客网 时间:2024/06/05 19:30
1、错误描述
今天用Android Studio编译应用后安装APK的时候,报错了,错误如下所示:
如下图所示
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的配置
第三步:重新编译即可,不会再报错。
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
- 华为手机logcat不出日志解决方案
- Ubuntu
- Linux安装apache详解
- javascript第5章
- View页面间的跳转
- 解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- JavaScript京东左侧控件效果
- 堆排序算法解析
- ubuntu 添加 1TB 的硬盘分区后只有256G的问题
- Android—OOM原理
- html中submit和button的区别(总结)
- C# 生成时间戳, 并再转换为北京时间
- 网页手机横屏竖屏下字体在大小不一样?
- The ARM Computer Vision and Machine Learning library