0
我試圖使用別名在我XML
文件引用drawables
,而第一個被定義如下:什麼產生「完成非零退出值1」?
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/portrait_a_3" />
文件名爲portrait_a.xml
,存儲在drawable-sw320dp-xhdpi
。它指的是drawable-nohdpi
中的一個文件,並且工作正常。但是,當我添加第二個文件(在同一文件夾中)時,保存所引用文件名稱中的「a」以及將新文件的文件名稱替換爲「b」時,我會得到:
Execution failed for task':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Developer/adt-bundle-mac-x86_64/sdk/build-tools/22.0.1/aapt" finished with non-zero exit value 1
爲什麼以及如何解決?這感覺就像我已經忘記了一些基本的東西,但我無法弄清楚究竟是什麼。