마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

간단한xml파일에서 Multiple annotations found at this line:오류

0 추천

res.layout에 input이라는 xml하나를 생성하고 거기에

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/input"
    >
   
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:id="@+id/label"
        android:text="name"
        />
<EditText//Multiple annotations found at this line:
       android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_toRightof="@id/label"
        android:layout_alignParentBaseline="@id/label"
        android:id="@+id/edit"
        />
<Button
     android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/edit"
        android:layout_alignRight="@id/edit"
        android:id="@+id/Okbt"
        android:text="OK"
        />
<Button
     android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/edit"
        android:layout_toLeftOf="@id/Okbt"
        android:id="@+id/Canbt"
        android:text="CANCLE"
        />
   
   
</RelativeLayout>
라고 코딩을 햇지요 근데 빨강글씨와 같은 오류가 뜨네요 클린과 리푸팅해봐도 소용 없었습니다.

판다 (220 포인트) 님이 2013년 8월 4일 질문

1개의 답변

0 추천

저 메세지는 두 가지 이상의 오류가 있다는 뜻입니다.

살펴보니 @id/label 로 참조하고 계신데

@+id/label 로 수정하셔야 겠네요

밑에 부분들도 @id로 쓰신 부분들 수정하셔야 하고요

 

b22n (22,940 포인트) 님이 2013년 8월 5일 답변
...