今天刚更新了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.解决方法相关推荐

  1. 我的Android进阶之旅------解决:debug-stripped.ap_' specified for property 'resourceFile' does not exist....

    1.错误描述 更新Android Studio到2.0版本后,出现了编译失败的问题,我clean project然后重新编译还是出现抑郁的问题,问题具体描述如下所示: Error:A problem ...

  2. vue 报错 Cannot read property ‘__ob__‘ of undefined的解决方法

    vue 报错 Cannot read property '__ob__' of undefined的解决方法 参考文章: (1)vue 报错 Cannot read property '__ob__' ...

  3. 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 ...

  4. Nodejs报内部错误 TypeError: Cannot read property ‘destroy‘ of undefined的解决方法

    Nodejs报内部错误 TypeError: Cannot read property 'destroy' of undefined的解决方法 [现象] 内部错误 TypeError: Cannot ...

  5. 前端开发:Vue项目报错Unknown custom element:XXX - did you register the component correctly…的解决方法丨蓄力计划

    导读 Vue项目报错Unknown custom element:XXX - did you register the component correctly-的解决方法. 问题 前段时间在做前端项目 ...

  6. MS-sql 2005拒绝了对对象 'xxx' (数据库 'xxx',架构 'dbo')的 SELECT 权限的解决方法

    MS-sql 2005拒绝了对对象 'xxx' (数据库 'xxx',架构 'dbo')的 SELECT 权限的解决方法 问题:Sql server 2005 默认设置下不允许远程登陆 1 外围设置 ...

  7. Android Studio:xxx is not an enclosing class 错误的解决方法

    Android Studio:xxx is not an enclosing class 错误的解决方法 这个问题一般出现在内部类中,若要创建内部类的实例,需要有外部类的实例才行,或者是将内部类设置为 ...

  8. PostgreSQL 插入数据报错:column “xxx“ does not exist 解决方法

    背景 shell 脚本跑 Python 写数据脚本任务的时候报错: File "./xxx.py", line 59, in xxxcur.execute(insert_sql(c ...

  9. 记录【1】Vue遇到的bug , 点击按钮出现Cannot read property 'toString' of undefined的解决方法

    在做上传文件时,点击按钮向后端传递数据时,出现了 Cannot read property 'toString' of undefined 的bug,很让人无厘头及不解,在网上找了好久才找到了一个可用 ...

最新文章

  1. pyqt5动态删除控件问题
  2. 遍历聚合对象中的元素——迭代器模式(二)
  3. 发票管理软件_企业为什么需要ERP企业管理软件?
  4. go io.reader 多次读取_你应该掌握的 Go 高级并发模式:计时器
  5. html输入表,HTML 表单输入
  6. 利用神经网络来计算XOR
  7. 让 Chrome 57 支持迅雷精简版
  8. springboot+pageoffice实现Word在线编辑
  9. Matlap生成正弦波以及正弦波转为方波代码示例
  10. 华为交换机 查ip冲突_华为交换机根据ip查端口号
  11. 用计算机计算实发工资,工资税率计算器 个税反推应发工资计算公式
  12. 复活唐音,是一味怎样的菜?
  13. 自建nod32更新服务器,ESET NOD32 官方升级服务器地址
  14. wget php mirror 地址,wget命令镜像网站
  15. 句法分析——CYK分析算法
  16. 智能网关CE证书和SAA认证,CB认证。
  17. 定位导航——旋转矩阵,IMU,左右乘
  18. 读取.nc文件数据及可视化
  19. Google Maps嵌入参数
  20. elevation的使用

热门文章

  1. pstack 跟踪进程栈
  2. 2017 ACM Arabella Collegiate Programming Contest E. Competitive Seagulls GYM101350E
  3. 中国信息安全测评中心-自主原创测评
  4. APP项目开发失败案例经验汇总
  5. Matlab R2012b 重复激活,License 失效问题解决
  6. poi对word读取(文本和图片)、修改、保存操作及word转换为PDF
  7. 文档控件Aspose.words for.java 授权须知
  8. MySQL数据库常见错误及解决方案
  9. WideBaselineFeatureMatcher_PAMI
  10. 智慧公交解决方案-最新全套文件