一個純粹小白的艱難前行之路,
? ? ? 經過了一周的學習,在無數次失敗的困惑之中,終于完成了我第一個簡單的不能再簡單的APP,與其說是APP,不如說是一個頁面好了。
? ? 雖然很簡單,但是我還是覺得很開心,畢竟萬里之路始于足下。有了一個頁面,以后才會有一個偉大的APP的誕生。
給自己加油鼓勁之后,寫下我覺得應該重視的基本知識。
1 所有的符號一定要用英文符號。
2注意前后符號的對應。
3Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\andiord sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1
這個是困擾我很久的一個簡單問題,出現這種情況可能是應用版本過低,引用資源過高的問題。將之前你選擇的4.3.0改為5.0或之上應該就能解決這個錯誤。
共勉,各位努力的人