2016-11-22 19 views
-1

here is screenshot 私は最新のgradleバージョンと を使用してみました。最新のAndroidスタジオバージョンを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へのdrawble - extensionの画像を修正しましたか? – Raghavendra

+0

コードはありません、あなたのログを表示してください。そして、あなたはこれを試しましたか?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スタジオはAAPT(Android Asset Packaging Tool)を使用してリソースパッケージをコンパイルする際にエラーを投げますので、拡張子を適切に保存するには、「gimp or paint」などのImage Editorツールを使用するだけです。すべての作業が完了したらプロジェクトを再構築してください。例えば

であなたのイメージを開くツール(それを開くためにあなたの画像をドラッグ&ドロップ)ペイント - >ファイル - したままの保存>を>保存タイプ - など>ドロップダウン

からあなたに必要なタイプを選択

ソース:https://stackoverflow.com/a/34675557/842607

+0

Uはこのリンクを投稿することができます:) http://stackoverflow.com/questions/30764604/execution-failed-for-task-appmergedebugresources-crunching-cruncher-png-fa – Raghavendra

+0

それは私にちょうどリンクを投稿することを許さなかった...しかしああ、私はソースを追加することができます...待つ答えを編集する –

関連する問題