たまにやってしまうこの置換時のエラー。検索から来る人のためにエラー文を。
エラー文
Some error(s) occurred while processing annotations. Please see the error messages above. Unresolved reference: hogehoge
原因
カスタムView、ViewName.java(自分はktだけど)を作って使う。
<com.exsample.ViewName android:layout_width="wrap_content" android:layout_height="wrap_content" /> </com.exsample.ViewName>
ここでAndroidStudioの置換機能(Shift + F6)を使います。
「ViewName」を「Hoge」にしてああげます。
レイアウトXMLを見てみましょう。
<Hoge android:id="@+id/smallApp_view" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </Hoge>
なんということでしょうcom.exsampleが綺麗さっぱり消えています。
ここを修正すればOK。
終わり
これどうにかならんの。