2012-09-07 4 views
1

이전 과목에서 그 오류에 대해 살펴 봤는데, 나는 android : xmlns attirbute를 먼저 나열해야한다고 말했습니다. 그 오류에 직면, 이유는 모르겠다. (작업중인 레이아웃에서 다른 레이아웃을 복사해도 상관 없습니다.) 다음은 XML 어쨌든입니다 :XML을 구문 분석하는 중 오류가 발생했습니다 (일부 성가신 문제, 초보자 용)

<RelativeLayout 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" > 

<com.google.android.maps.MapView 
xmlns:android="http://schemas.android.com/apk/res/android" 
android:id="@+id/mapview" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:clickable="true" 
android:apiKey="*CENSORED*"/> 


</RelativeLayout> 

어떤 문제가 여기에있을 수 있을까?

+0

그리고 이미 오류가 무엇입니까? – Alex

+0

@Alex XML을 구문 분석하는 중 오류 : 언 바운드 접두어 – idish

+0

완전한 XML을 게시하고 오류/스택 추적을 완료하십시오. – Alex

답변

0

해결책은 : 내 adb를 재설정해야했습니다.

0
<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout 
     xmlns:android="http://schemas.android.com/apk/res/android" 
     android:orientation="vertical" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent"> 

     <com.google.android.maps.MapView 
      xmlns:android="http://schemas.android.com/apk/res/android" 
      android:id="@+id/mapview" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:clickable="true"  
      android:layout_above="@+id/ll" 
      android:apiKey="*******" />   
</RelativeLayout> 

이것은 내 xml이며 저와 함께 작동합니다. 나는 첫 번째 행을 놓친 것 같아.

+0

정답이 아니므로 내 adb를 재설정해야했지만 어쨌든 대답을 수락합니다. – idish

+0

@idish 따라서 2 일을 기다려야 솔루션을 게시하고 수락해야합니다. 단 하나이기 때문에 대답을 수락 할 때 요점은 무엇입니까? 또한 Google에서이 사이트를 방문하는 사람들이 오도 할 수 있습니다. 당신은 또한 당신의 질문을 제거 할 수있는 옵션이 있습니다 – Raffaele

+0

@ 라파엘 오케이, 나는 2 일 만에 내 대답을 게시 할 것입니다. 누군가 이미 응답했기 때문에 삭제할 수없는 것처럼 보입니다. – idish

관련 문제