gradle升级,v7包莫名其妙的报错 解决方法
来源:互联网 发布:python 函数传入列表 编辑:程序博客网 时间:2024/05/27 06:13
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\\
1 0
- gradle升级,v7包莫名其妙的报错 解决方法
- Gradle升级报错
- android studio 升级到1.0后gradle method not found: 'runProguard()'报错的解决方法
- 莫名其妙的语法报错
- AS的gradle报错的解决方法
- gradle classpath 升级报错
- Android v7 包导入报错问题
- Cocos2D CCRenderTexture莫名其妙报错的问题
- Cocos2D CCRenderTexture莫名其妙报错的问题
- 关于一些莫名其妙的报错
- 关于前端页面莫名其妙的报错
- Theme.Compat.Light 报错,导入v7包依然报错的解决办法!
- 老项目将V4包替换成V7包的时候,同步gradle文件报Error:(4) Error retrieving parent for item: No resource found that match
- Android Studio 2.3 升级 gradle 报错
- android studio 升级2.2 gradle升级2.2 DefaultManifestParser报错
- android studio升级3.0,gradle升级项目报错
- 解决Eclips中使用V7兼容包的主题报错的问题
- Rational SoDA V7.0 报JVM 失败错误的解决方法
- 对数函数应用实例
- 【C语言】C语言编写扫雷
- 事件拦截机制分析——Android群英传
- react-native添加redux支持
- 项目目标和范围管理 技能点一 二 三
- gradle升级,v7包莫名其妙的报错 解决方法
- 2017-5-11 工作第二天,开始记录
- Java中单例模式
- python3 中的queue模块
- 输出螺旋数组(难度:1颗星)
- android studio更利于开发设置的属性
- Softmax 函数及其作用(含推导)
- 归并排序
- React Native调用Android相机图库