AndroidStudio 編譯報錯 abc_list_selector_disabled_holo_light.9.png
報錯資訊如下
Error:com.android.builder.internal.aapt.AaptException: Failed to crunch file:
Error:com.android.builder.internal.aapt.AaptException: Failed to crunch file E:\11111111\222222222222222222\demo\demo-master\demo\demo\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.3.0\res\drawable-xhdpi-v4\abc_list_selector_disabled_holo_light.9.png into E:\11111111\222222222222222222\demo\demo-master\demo\demo\build\intermediates\res\merged\androidTest\debug\drawable-xhdpi-v4\Error:com.android.builder.internal.aapt.AaptException: Failed to crunch file E:\11111111\222222222222222222\demo\demo-master\demo\demo\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.3.0\res\drawable-xhdpi-v4\abc_list_selector_disabled_holo_light.9.png into E:\11111111\222222222222222222\demo\demo-master\demo\demo\build\intermediates\res\merged\androidTest\debug\drawable-xhdpi-v4\abc_list_selector_disabled_holo_light.9.png
你會發現你的專案裡沒有 abc_list_selector_disabled_holo_light.9.png 這個圖片 這是V4或者V7包下的圖片;
導致這個錯誤原因是:專案檔案路徑太長了 減少路徑長度就可以了