Androoid studio 2.3 AAPT err(Facade for 596378712): \?C:Users中文文件夹.androiduild-cache
Posted work hard work smart
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Androoid studio 2.3 AAPT err(Facade for 596378712): \?C:Users中文文件夹.androiduild-cache相关的知识,希望对你有一定的参考价值。
错误如下:
Error:Some file crunching failed, see logs for details Error:Execution failed for task ‘:app:mergeDebugResources‘. > Error: Some file crunching failed, see logs for details AAPT err(Facade for 596378712): \\?\C:\Users\中文文件夹\.android\build-cache\2fe51ff37440fab8f5f875609a799aebf31c9e02\output\res\drawable-xxxhdpi-v4\abc_ic_menu_share_mtrl_alpha.png ERROR: Unable to open PNG file AAPT err(Facade for 596378712): \\?\C:\Users\中文文件夹\.android\build-cache\2fe51ff37440fab8f5f875609a799aebf31c9e02\output\res\drawable-xxxhdpi-v4\abc_tab_indicator_mtrl_alpha.9.png ERROR: Unable to open PNG file
解决方法
Folder name of your account(reverse R?)
is not ascii
folder name, so build-cache
cannot recognize your folder.
- Change folder name : it‘s impossible in windows 10.
- not use build cache: Leos Literak‘s answer. not good solution.
- Best solution: change build-cache path. refer to https://developer.android.com/studio/build/build-cache.html
For Ex:
in gradle.properties android.buildCacheDir=D:/android-studio/build-cache
参考:http://stackoverflow.com/questions/42580645/errorsome-file-crunching-failed-see-logs-for-details-afer-update-gradle
以上是关于Androoid studio 2.3 AAPT err(Facade for 596378712): \?C:Users中文文件夹.androiduild-cache的主要内容,如果未能解决你的问题,请参考以下文章
在android studio中构建apk时找不到Aapt_rules.txt
更新后Android Studio 3.3到3.4 AAPT2生成错误
Xamarin Studio 2 - 最新稳定更新 - 执行任务 Aapt 时出错:源序列为空
Android Studio升级到3.0,抛出Aapt2Exception异常
Android Studio Android 资源链接失败错误.. AAPT:错误:找不到资源 android:attr/lStar。在 values.xml 105