simple is best and beautiful.

Eclipse android-support-v7-appcompatプロジェクトでビルドエラー

-概要-

android-support-v7-appcompatプロジェクトでビルドエラーが起きた際にやった対処

 

-エラー内容-

res\values-v21\styles_base.xmlファイルで、以下のようなエラーメッセージが出力される。

"No resource found that matches the given name 'android:Widget.Material.ActionButton'."

f:id:tetsuromww:20150110172401p:plain

 

-対処方法-

appcompatプロジェクトのproject.propertiesで、targetを"target=android-19"から"target=android-21"に編集。

編集後、cleanしてビルド。