我是Android开发的新手。安装了Android工作室1.5.1并创建了一个新的HelloWorld项目。在创建新项目后的一段时间内,Gradle构建发生并以错误消息结束`错误:任务执行失败#39;:应用程序:mergeDebugResources'
Crunching Cruncher abc_switch_track_mtrl_alpha.9.png失败,请参阅日志。
在Gradle控制台上得到了以下内容:app:mergeDebugResources
AAPT: D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-mdpi-v4\abc_switch_track_mtrl_alpha.9.png ERROR: Unable to open PNG file
AAPT: D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-hdpi-v4\abc_ic_star_half_black_48dp.png ERROR: Unable to open PNG file
AAPT: D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\abc_ic_search_api_material.png ERROR: Unable to open PNG file
AAPT: D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-xhdpi-v4\abc_list_selector_disabled_holo_light.9.png ERROR: Unable to open PNG file
AAPT: D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-hdpi-v4\abc_ic_menu_share_mtrl_alpha.png ERROR: Unable to open PNG file
AAPT: D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-mdpi-v4\abc_btn_switch_to_on_mtrl_00012.9.png ERROR: Unable to open PNG file
AAPT: D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-hdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png ERROR: Unable to open PNG file
AAPT: D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\abc_text_select_handle_middle_mtrl_light.png ERROR: Unable to open PNG file
AAPT: D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-hdpi-v4\abc_ic_search_api_material.png ERROR: Unable to open PNG file
AAPT: D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-hdpi-v4\abc_scrubber_control_to_pressed_mtrl_005.png ERROR: Unable to open PNG file
...........
...........
...........
AAPT err(Facade for 354293831): D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-mdpi-v4\abc_btn_radio_to_on_mtrl_000.png ERROR: Unable to open PNG file
AAPT err(Facade for 354293831): D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-mdpi-v4\abc_scrubber_control_to_pressed_mtrl_005.png ERROR: Unable to open PNG file
AAPT err(Facade for 354293831): D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-mdpi-v4\abc_ic_star_black_16dp.png ERROR: Unable to open PNG file
AAPT err(Facade for 354293831): D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-mdpi-v4\abc_ic_arrow_drop_right_black_24dp.png ERROR: Unable to open PNG file
AAPT err(Facade for 354293831): D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-xhdpi-v4\abc_text_select_handle_middle_mtrl_dark.png ERROR: Unable to open PNG file
AAPT err(Facade for 354293831): D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\abc_vector_test.png ERROR: Unable to open PNG file
AAPT err(Facade for 354293831): D:\Workspace\android\Vgabby\app\build\intermediates\res\merged\debug\drawable-mdpi-v4\abc_textfield_activated_mtrl_alpha.9.png ERROR: Unable to open PNG file
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Crunching Cruncher abc_switch_track_mtrl_alpha.9.png failed, see logs
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
我一直试图设置这个很长一段时间,但是我无法让它工作。我已经尝试更新到android studio版本2但是每次创建新项目时问题仍然存在。
我在运行Windows 8.1,8 gb ram,64 bit,jdk 8且具有大量存储空间的计算机上尝试过它。
这是安卓工作室的问题还是我错过了什么。我已经检查了堆栈溢出中的类似问题,但他们的答案似乎对我不起作用。
尝试重建,清理新项目,更改gradle版本,但似乎仍然没有可行的解决方案。
Android Studio配置
compileSdkVersion 24 buildToolsVersion" 24.0.2" Gradle版本1.5.0