File xxx specified for property 'resourceFile' does not exist.解决方法
今天刚更新了Android Studio 2.2,重新编译项目时就出现了以下问题:
Error:A problem was found with the configuration of task ':app:packageDebug'.
> File xxx specified for property 'resourceFile' does not exist.
在Stack Overflow查了下,有人说是开启了Instant Run,关闭即可;又有人说是设置了shrinkResources,只需将其设为false。试了下,只需要将shrinkResources改为false即可,开启Instant Run也不会报错,但依旧第一次运行时白屏…(TㅅT)
buildTypes {debug {//Zipalign优化zipAlignEnabled true// 移除无用的resource文件shrinkResources false//混淆minifyEnabled false//加载默认混淆配置文件proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'}release {//Zipalign优化zipAlignEnabled true// 移除无用的resource文件shrinkResources true//混淆minifyEnabled true//加载默认混淆配置文件proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'}
}
File xxx specified for property 'resourceFile' does not exist.解决方法相关推荐
- 我的Android进阶之旅------解决:debug-stripped.ap_' specified for property 'resourceFile' does not exist....
1.错误描述 更新Android Studio到2.0版本后,出现了编译失败的问题,我clean project然后重新编译还是出现抑郁的问题,问题具体描述如下所示: Error:A problem ...
- vue 报错 Cannot read property ‘__ob__‘ of undefined的解决方法
vue 报错 Cannot read property '__ob__' of undefined的解决方法 参考文章: (1)vue 报错 Cannot read property '__ob__' ...
- Vue报错:Uncaught TypeError: Cannot assign to read only property ‘exports‘ of object 的解决方法
Vue报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object 的解决方法 参考文章: (1)Vue ...
- Nodejs报内部错误 TypeError: Cannot read property ‘destroy‘ of undefined的解决方法
Nodejs报内部错误 TypeError: Cannot read property 'destroy' of undefined的解决方法 [现象] 内部错误 TypeError: Cannot ...
- 前端开发:Vue项目报错Unknown custom element:XXX - did you register the component correctly…的解决方法丨蓄力计划
导读 Vue项目报错Unknown custom element:XXX - did you register the component correctly-的解决方法. 问题 前段时间在做前端项目 ...
- MS-sql 2005拒绝了对对象 'xxx' (数据库 'xxx',架构 'dbo')的 SELECT 权限的解决方法
MS-sql 2005拒绝了对对象 'xxx' (数据库 'xxx',架构 'dbo')的 SELECT 权限的解决方法 问题:Sql server 2005 默认设置下不允许远程登陆 1 外围设置 ...
- Android Studio:xxx is not an enclosing class 错误的解决方法
Android Studio:xxx is not an enclosing class 错误的解决方法 这个问题一般出现在内部类中,若要创建内部类的实例,需要有外部类的实例才行,或者是将内部类设置为 ...
- PostgreSQL 插入数据报错:column “xxx“ does not exist 解决方法
背景 shell 脚本跑 Python 写数据脚本任务的时候报错: File "./xxx.py", line 59, in xxxcur.execute(insert_sql(c ...
- 记录【1】Vue遇到的bug , 点击按钮出现Cannot read property 'toString' of undefined的解决方法
在做上传文件时,点击按钮向后端传递数据时,出现了 Cannot read property 'toString' of undefined 的bug,很让人无厘头及不解,在网上找了好久才找到了一个可用 ...
最新文章
- pyqt5动态删除控件问题
- 遍历聚合对象中的元素——迭代器模式(二)
- 发票管理软件_企业为什么需要ERP企业管理软件?
- go io.reader 多次读取_你应该掌握的 Go 高级并发模式:计时器
- html输入表,HTML 表单输入
- 利用神经网络来计算XOR
- 让 Chrome 57 支持迅雷精简版
- springboot+pageoffice实现Word在线编辑
- Matlap生成正弦波以及正弦波转为方波代码示例
- 华为交换机 查ip冲突_华为交换机根据ip查端口号
- 用计算机计算实发工资,工资税率计算器 个税反推应发工资计算公式
- 复活唐音,是一味怎样的菜?
- 自建nod32更新服务器,ESET NOD32 官方升级服务器地址
- wget php mirror 地址,wget命令镜像网站
- 句法分析——CYK分析算法
- 智能网关CE证书和SAA认证,CB认证。
- 定位导航——旋转矩阵,IMU,左右乘
- 读取.nc文件数据及可视化
- Google Maps嵌入参数
- elevation的使用
热门文章
- pstack 跟踪进程栈
- 2017 ACM Arabella Collegiate Programming Contest E. Competitive Seagulls GYM101350E
- 中国信息安全测评中心-自主原创测评
- APP项目开发失败案例经验汇总
- Matlab R2012b 重复激活,License 失效问题解决
- poi对word读取(文本和图片)、修改、保存操作及word转换为PDF
- 文档控件Aspose.words for.java 授权须知
- MySQL数据库常见错误及解决方案
- WideBaselineFeatureMatcher_PAMI
- 智慧公交解决方案-最新全套文件