2012-01-24 37 views

回答

2

請您在GraphicLayout錯誤日誌或控制檯完整的錯誤。 檢查編譯時未識別的拼寫或拼寫錯誤。

例如: 見下面

<LinearLauout 
     android:id="@+id/layout3" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_weight="1" > 

     <TextView 
      android:id="@+id/text4" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:text="@string/hello" /> 
    </LinearLauout> 

在關閉佈局塔格錯字錯誤在佈局xml文件的圖形佈局圖中蝕出的錯誤:

com.android.layoutlib.bridge。 MockView無法轉換爲android.view.ViewGroup 在窗口>顯示視圖>錯誤日誌中記錄異常詳細信息 找不到以下類: - LinearLauout(更改爲LinearLayout,修復構建路徑,編輯XML)

點擊「更改爲linerlayout」它將被解決。

並且還檢查大寫字母,例如, 大號 inear 大號 ayout可以分類爲 inear ayout

6

關閉你的Eclipse並重新啓動它...通常就消失了

相關問題