error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
上面是xml文件中顯示的錯誤。我想因爲這個錯誤,我得到了「R無法解析爲變量」的錯誤,並且我的R.java
文件在gen中缺失。錯誤appcompat_v7> res> values_v21> style_base.xml和R無法解析爲MainActivity中的變量.Java
我剛剛開始爲android系統編程。我在製作第一個應用程序時出現此錯誤。請告訴我如何在xml文件中刪除該錯誤並獲取生成的R.java
文件。
這是錯誤。在你的項目中有一些其他的錯誤會阻止它被正確地構建,結果'R'不會被生成。 –