gradle升级到2.3,出现的编译错误
来源:互联网 发布:美丽港发型设计软件 编辑:程序博客网 时间:2024/05/01 09:04
http://stackoverflow.com/questions/42622654/some-file-crunching-failed-mergedebugresources-failed
Error: Some file crunching failed, see logs for details:app:mergeDebugResources FAILED
AAPT: \\?\C:\Users\任\.android\build-cache\41cfce3bb6e2ca4b269727fe91725c24a067ec68\output\res\drawable-mdpi-v4\abc_btn_switch_to_on_mtrl_00012.9.png ERROR: Unable to open PNG fileAAPT: \\?\C:\Users\任\.android\build-cache\41cfce3bb6e2ca4b269727fe91725c24a067ec68\output\res\drawable-xxhdpi-v4\abc_ic_star_half_black_48dp.png ERROR: Unable to open PNG fileAAPT: \\?\C:\Users\任\.android\build-cache\41cfce3bb6e2ca4b269727fe91725c24a067ec68\output\res\drawable-hdpi-v4\abc_ic_menu_share_mtrl_alpha.png ERROR: Unable to open PNG fileAAPT: \\?\C:\Users\任\.android\build-cache\41cfce3bb6e2ca4b269727fe91725c24a067ec68\output\res\drawable-xxhdpi-v4\abc_text_select_handle_middle_mtrl_light.png ERROR: Unable to open PNG file
解决
problem solved. The solution is here.
Related data as below:
1. According to release notes of Android Studio version 2.3, build cache is enabled by default.
2. so we should disable this setting. Here is official guide, Android Studio/User Guide/build-cache(linkhttps://developer.android.com/studio/build/build-cache.html).
3. go to gradle.properties file, and disable build cache.
// To re-enable the build cache, either delete the following// line or set the property to 'true'.android.enableBuildCache=false
the other way is to modify build cache dir by adding
# first line can be skipped because true is the default value by 2.3android.enableBuildCache=trueandroid.buildCacheDir =c:\\temp\\
0 0
- gradle升级到2.3,出现的编译错误
- Android Studio升级到2.3版本后出现gradle解压错误
- VC2003升级到vc2008出现的错误
- Gradle编译出现OOM错误
- 从vs2008升级到2010时,reportview出现的错误
- Xcode升级到7.1出现itms-90049 错误 的解决办法
- Androidstudio 2.2.3升级到2.3 后出现Refreshing gradle project问题
- Androidstudio 2.2.3升级到2.3 后出现Refreshing gradle project问题
- android studio 升级后,经常会对gradle升级,然后编译原来程序会出现gradle版本太老的问题
- admob xcode升级问题从早期版本升级到新版本出现的错误
- gradle升级到2.2.0 DefaultManifestParser 编译不过
- 编译出现的错误
- yaffs2 移植到mini2440上出现的编译错误
- 关于studio升级到1.0.0-rc4后出现的 “Gradle DSL method not found: 'runProguard()'...”的问题解决方法
- gradle编译出现OutOfMemoryError
- gradle编译spring源码遇到的错误
- 升级到xcode4.2 iOS sdk 5.0旧版工程编译后出现的警告解决办法
- 升级spring1.2.8.jar到 spring2.5.jar对应的bean.xml文件没做升级出现的错误
- 关于Unity中的框架层 和 应用层
- xml 解析,libxml2的使用
- 解决Unable to load R3 module ...VBoxDD.dll (VBoxDD):GetLastError=1790
- JavaScript(JS)
- UVA 1632 区间DP
- gradle升级到2.3,出现的编译错误
- 机器学习笔记(七)Boost算法(GDBT,AdaBoost,XGBoost)原理及实践
- ubuntu 16.04 启用root用户方法(亲测可行)
- 13.Roman to Integer
- go语言比较常用的用法
- Power of Four
- mpu6050姿态解算与卡尔曼滤波(2)卡尔曼滤波
- 【OpenGL】GLUT函数说明
- c++实验2-分段函数求值