2016-11-22 1 views
-1

here is screenshot 최근의 gradle 버전과 을 사용해 보았습니다. 최신 Android Studio 버전을 2.2로 업데이트하지만 프로젝트를 빌드하는 동안 반복해서 오류가 발생하면 제안하십시오. 나를.수정하는 방법, 오류 : 'app : mergeDebugResources'작업의 실행에 실패했습니다. > 오류 : java.lang.RuntimeException : 일부 파일 처리가 실패했습니다.

Executing tasks: [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies] 
 

 
Configuration on demand is an incubating feature. 
 
Incremental java compilation is an incubating feature. 
 
:clean UP-TO-DATE 
 
:app:clean 
 
:app:preBuild UP-TO-DATE 
 
:app:preDebugBuild UP-TO-DATE 
 
:app:checkDebugManifest 
 
:app:preReleaseBuild UP-TO-DATE 
 
:app:prepareComAndroidSupportAnimatedVectorDrawable2421Library 
 
:app:prepareComAndroidSupportAppcompatV72421Library 
 
:app:prepareComAndroidSupportSupportCompat2421Library 
 
:app:prepareComAndroidSupportSupportCoreUi2421Library 
 
:app:prepareComAndroidSupportSupportCoreUtils2421Library 
 
:app:prepareComAndroidSupportSupportFragment2421Library 
 
:app:prepareComAndroidSupportSupportMediaCompat2421Library 
 
:app:prepareComAndroidSupportSupportV42421Library 
 
:app:prepareComAndroidSupportSupportVectorDrawable2421Library 
 
:app:prepareDebugDependencies 
 
:app:compileDebugAidl 
 
:app:compileDebugRenderscript 
 
:app:generateDebugBuildConfig 
 
:app:generateDebugResValues 
 
:app:generateDebugResources 
 
:app:mergeDebugResources 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\abc_ic_menu_selectall_mtrl_alpha.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\abc_list_selector_disabled_holo_light.9.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-mdpi-v4\abc_menu_hardkey_panel_mtrl_mult.9.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-xxxhdpi-v4\abc_spinner_mtrl_am_alpha.9.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-xxxhdpi-v4\abc_ic_star_half_black_36dp.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-hdpi-v4\abc_ic_star_black_36dp.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-hdpi-v4\abc_ic_commit_search_api_mtrl_alpha.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-mdpi-v4\abc_text_select_handle_middle_mtrl_dark.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-xhdpi-v4\abc_text_select_handle_left_mtrl_light.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-ldrtl-hdpi-v17\abc_spinner_mtrl_am_alpha.9.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\abc_text_select_handle_left_mtrl_light.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-mdpi-v4\abc_list_pressed_holo_dark.9.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\abc_ic_star_half_black_36dp.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\abc_list_focused_holo.9.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\abc_btn_switch_to_on_mtrl_00001.9.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-xxxhdpi-v4\abc_ic_star_black_36dp.png ERROR: Unable to open PNG file 
 
AAPT err(Facade for 445014223): D:\projects\Intent2\app\build\intermediates\res\merged\debug\drawable-xhdpi-v4\abc_ic_menu_copy_mtrl_am_alpha.png ERROR: Unable to open PNG file 
 

 
Error: java.lang.RuntimeException: Some file crunching failed, see logs for details 
 
:app:mergeDebugResources FAILED 
 

 
FAILURE: Build failed with an exception. 
 

 
* What went wrong: 
 
Execution failed for task ':app:mergeDebugResources'. 
 
> Error: java.lang.RuntimeException: Some file crunching failed, see logs for details 
 

 
* Try: 
 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 
 

 
BUILD FAILED

+0

jpg에서 png까지 확장 가능한 모든 이미지를 수정 했습니까? – Raghavendra

+0

코드 없음 no answer, 로그를 보여주세요. 그리고 이것을 시도 했습니까? http : //stackoverflow.com/questions/37131212/errorexecution-failed-for-task-appmergedebugresources-some-file-crunchin – Motee

+0

[ 'app : mergeDebugResources'작업에 대한 실행이 실패했습니다. Crunching Cruncher .... png failed (http://stackoverflow.com/questions/30764604/execution-failed-for-task-appmergedebugresources-crunching-cruncher-png-fa) – Raghavendra

답변

0

이 (.JPG)과 같은 몇 가지 확장이 그릴 수있는 이미지를 추가로 인해 당신이 변경 또는 .PNG 형식으로 (이 오류가 변화하는 동안 발생하는 것을 저장 한 편집기 도구를 사용하지 않고 이미지 형식을 수동으로). Android Studio에서는 AAPT (Android Asset Packaging Tool)를 사용하여 리소스 패키지를 컴파일하는 동안 오류가 발생하므로 "김프 또는 페인트"와 같은 이미지 편집기 도구를 사용하여 확장 프로그램을 저장하면됩니다. 모든 작업이 완료되면 프로젝트를 다시 빌드하십시오. 예를 들어

: 도구 페인트 (드래그하여 열어 당신의 이미지를 드롭) 에서 이미지를 열 -> 파일 - 드롭 다운 메뉴에서 필요한 유형을 선택> 형 -> 다른 이름으로 저장 시스 -> 저장

출처 : https://stackoverflow.com/a/34675557/842607

+0

U는이 연결을 배치 할 수 있었다 :) http://stackoverflow.com/questions/30764604/execution-failed-for-task-appmergedebugresources-crunching-cruncher-png-fa – Raghavendra

+0

그것은 나에게 다만 연결을 배치하는 것을 허용하지 않았다 ... 그러나 나중에 내가 소스를 추가 할 수 있습니다 ... 대기는 대답을 편집합니다 –

관련 문제