2012-11-25 2 views
-1

초기 프로젝트 생성 코드에 코드를 추가하려고하면 Android SDK 21 bundle Windows x64이 설치되고 오류가 발생합니다. 안녕하세요 세계를 통해 실행 해봤는데 모든 항목에 오류가 발생했습니다. BTW : 저는 안드로이드와 리눅스를 다루는 초보자입니다. 그러나 저는 많은 윈도우 프로그래밍을 해왔습니다. 감사합니다 ...Android sdk 21 라이브러리 오류

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:orientation="horizontal"> 
<EditText android:id="@+id/edit_message" 
    android:layout_weight="1" 
    android:layout_width="0dp" 
    android:layout_height="wrap_content" 
    android:hint="@string/edit_message" /> 
<Button 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:text="@string/button_send" /> 
</LinearLayout> 

EDIT : removed redundancy.

+2

여기에 오류가 있습니다. –

+0

설명 \t 리소스 \t 경로 \t 위치 \t 유형 오류 : 오류 : 지정한 이름과 일치하는 리소스가 없습니다 ('힌트'에서 값 '@ 문자열/편집 _ 메시지'). \t activity_hello_world.xml \t/HelloWorld/res/layout \t line 7 \t Android AAPT 문제 – user1850999

+0

'res/values ​​/ strings.xml' 파일에'edit_message'라는 이름의 문자열이 포함되어 있습니까? –

답변

0

시도 : 1) Eclipse를 다시로드 2) 프로젝트 정리를 실행합니다.

2

귀하의 마지막 Button(button_send) 님은 상위 뷰가 없습니다.

LinearLayout 또는 그 외 다른보기로 넣어야합니다.