2019-07-07 styleableが参照できないエラー(cannot resolve styleable) 事象 CustomViewを作ろうとした際に、atters.xmlのstyleattributeを解決できなくてエラー エラーキャプチャ 解決方法 原因 ・Android SDKのR classをimportしている。 解決策 ・android.Rではなく、パッケージのR classをimportする。 importのクラスを意識せずにoption+Enter押してるとこうなる。 メモ R.javaについて詳しく https://stackoverflow.com/questions/4953077/what-is-the-class-r-in-android