2015-09-23 68 views
1

我是Android Studio的新手。
我將.9.png複製到drawable-hdpi中,並將該圖像用於背景。從drawable使用.9.png後找不到資源

但它給了一個錯誤:

Error:(6, 25) No resource found that matches the given name (at 'background' with value '@drawable/spc'). 

    Error:Execution failed for task ':app:processDebugResources'. 
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\software\new sdk\sdk\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 1 

如何解決這個問題?

+2

請顯示您的實施。有錯字嗎? – Christopher

+0

使用9個補丁? –

+0

@Christopher 這裏是屏幕截圖 https://www.dropbox.com/s/htfmyzj3vijkxhj/Capture.PNG?dl=0 – user3596211

回答

0

@drawable/spc可能不是一個9補丁(具有在框架上沒有黑像素),所以一個可能的修復將是改變spc.9.pngspc.png