반응형
Notice
Recent Posts
Recent Comments
Link
불로구
[ duplicate attribute ] 에러 발생 대처 본문
반응형
발생원인 : Fragment와 DataBinding을 같이 하다 xml 파일에서 layout 태그를 설정하고, View의 속성을 제거하지 않음
에러발생코드
<layout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="#F5F5F5"
android:gravity="center">
해결 코드
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
>
반응형
Comments