鎼厤鐜閫夌敤Eclipse + ADT錛岃緇嗙殑瀹夎榪囩▼Google涓鎼滃氨寰堝錛屾棤欏誨璁詫紝瀹夎涔熸尯綆鍗曠殑錛岃娉ㄦ剰鐨勫湴鏂逛篃灝辨槸Eclipse鐨勭増鏈夋嫨闂錛屽鏋淓clipse鐨勭増鏈綆浜?.4錛屾垜鍦ㄥ畨瑁匒DT鏃舵媧諱笉鎴愬姛錛屽悗鏉ラ噸鏂頒笅浜嗕釜3.42鐨勬墠鎼炲畾銆備笉娉ㄦ剰鐪嬪畼鏂規枃妗o紝鍙堣姳浜嗘垜涓涓笅鍗堝師鍥犮?br />
鏇存偛鍓х殑鏄垜鐢ㄧ殑鏂囨。鏄粠鎴戝悓瀛﹂偅閲屾嫹璐濊繃鏉ョ殑錛屾槸1.1鐨勶紝鑰屾垜浣跨敤鐨剆dk鏄?.5鐨勶紝鍦ㄨ繘琛宻dk閲岄偅涓狽otepad Tutorial鏃惰繍琛岀▼搴忔繪槸鎶ラ敊:an unexpected error錛屽悗鏉ヨ姳浜嗗緢澶氭椂闂存墠鍙戠幇1.1 璺?.5鍏跺疄寰堝涓嶅悓鐨?br />
1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="wrap_content"
4 android:layout_height="wrap_content">
5
6 <ListView android:id="@id/android:list"
7 android:layout_width="wrap_content"
8 android:layout_height="wrap_content"/>
9 <TextView android:id="@id/android:empty"
10 android:layout_width="wrap_content"
11 android:layout_height="wrap_content"
12 android:text="@string/no_notes"/>
13
14 </LinearLayout>
鍦?.5SDK閲岃瀹?鍦ㄧ戶鎵?ListActivity鏃訛紝鍦▁ml涓繀欏繪湁listview榪欎釜鎺т歡瀛樺湪錛岃屼笖鍏秈d 蹇呴』涓?#8220;"@android:id/list”
鍦ㄨ繘琛寈ml鐨勭紪杈戞椂錛屾垜鍙戠幇鏈変釜闂錛?/p>
Multiple annotations found at this line:
- The processing instruction target matching "[xX][mM][lL]" is not
allowed.
- ERROR Error parsing XML: XML or text declaration not at start of
entity
璇硶涓婃病鏈夐敊璇紝鍚庢潵鎴慓oogle浜嗕竴涓嬶紝瀹樻柟緇欏嚭鐨勫洖絳旀槸
Question
When importing an xml file, you receive the following error:
Error parsing the document.
The processing instruction target matching "[xX][mM[lL]" is not allowed.
Solution:
Edit your xml file using a text editor. At the very beginning of the first line, look for and delete any leading spaces.
The following first line of the xml must not have any spaces or characters before the first "><" in the line.
<?xml version="1.0" encoding="UTF-8"?>
鍗蟲槸璇村湪<?xml 鍓嶉潰涓嶈兘鏈変換浣曠┖鏍?........

]]>