The APK file xxx.apk does not exist on disk. Error while Installing APK
来源:互联网 发布:确保数据完整准确 编辑:程序博客网 时间:2024/05/16 05:48
今天编译装包到测试机莫名其妙的报了这个问题, 发现这个文件确实在该文件夹下是存在的, 不知道是不是as的bug
好吧百度下吧,
http://m.blog.csdn.net/qq446282412/article/details/51243441
http://blog.csdn.net/afunx/article/details/70313402
这两篇文章介绍的方法都试过了,但是没有解决问题...........
最后在 https://stackoverflow.com/questions/34039834/the-apk-file-does-not-exist-on-disk 找到了答案, 并且解决了问题
引起该问题的原因大致是使用build.gradle script 中
variant.outputs.each { output -> def outputFile = output.outputFile if (outputFile != null && outputFile.name.endsWith('.apk')) { // apk_渠道名-版本号-版本名称-编译时间.apk def fileName = "xxx.apk" tput.outputFile = new File(outputFile.parent, fileName) }}
给apk文件重命名时发生了问题, 如果除.apk之外的文件名中还包含. 的话, 可能会出现这个问题,好吧 将重命名格式改的简单点, 问题就解决了...记录下, 希望也能帮到大家解决类似问题
阅读全文
0 0
- The APK file xxx.apk does not exist on disk. Error while Installing APK
- The APK file xxx.apk does not exist on disk. Error while Installing APK
- Launching app : The APK file xxxx.apk does not exist on disk Error while Installing APK
- The APK file does not exist on disk.Error while Installing APK
- The APK file does not exist on disk.Error while Installing APK
- the apk file does not exist on disk. error while installing apk
- Error while Installing APK:apk does not exist on disk.
- Android 错误(The APK file *.apk does not exist on disk Error while Installing APK)解决方法
- Debug 切换 Release 编译i The APK file does not exist on disk.Error while Installing APK
- AndroidStudio中编译异常: **.apk does not exist on disk.Error while Installing APK
- 解决Android studio 编译时报错debug.apk does not exist on disk. Error while Installing APK
- Android Studio The APK file does not exist on disk
- 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
- 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
- 算法分析课每周练习 Median of Two Sorted Arrays
- 多文件目录下makefile文件递归执行编译所有c文件
- bit位域大小端转换问题,位域是一个整体转换?
- Opencv实现粒子滤波算法
- 【Linux】 nc (netcat) 详解
- The APK file xxx.apk does not exist on disk. Error while Installing APK
- poj 2752
- Android学习路线总结,绝对干货
- 一只青蛙一次可以跳上1级台阶,也可以跳上2级……它也可以跳上n级。求该青蛙跳上一个n级的台阶总共有多少种跳法。
- python 获得对象的所有属性和方法
- 51定时器初始化步骤
- 简单几步实现在AndroidStudio中导出Jar包
- libcore.java.text.DateFormatSymbolsTest测试fail两条
- HDU 3501 数论 欧拉函数的应用