2011-07-31 3 views
0

여기 내 코드 ... 모든 것이 정확해야합니다. ???오류 : XML을 구문 분석하는 데 걸리는 오류 : 2 행의 언 바운드 접두사

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
+0

이는 전체 XML 파일 권한이 아닙니다. 확실히 더있다? 지금까지 올바른 것처럼 보이기 때문에 모든 것을 게시하십시오. –

+0

나는 그것을 알아 냈다. ... 내 안드로이드 접두사 중 하나가 그렇게 쓰여 있었다 : andriod and eclipse 그것은 어떤 이유로 든 2 행이라고 불렀다. – javis

답변

1

이 코드에서 오류

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    /> 

이 없습니다하지만 당신은 어떤 컨테이너 뷰의 폭과 높이를 설정해야합니다. 이렇게하면 다음과 같을 수 있습니다.

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 
</LinearLayout> 
관련 문제