2012-03-12 63 views
2

請看看這個main.xml中 -生成R.Java和佈局 - 的IntelliJ VS Eclipse的

<TableLayout android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      xmlns:android="http://schemas.android.com/apk/res/android" 
      android:id="@+id/TableLayout03"> 

在Eclipse的未來了罰款,沒有任何錯誤和項目是從生成工作 在它的IntelliJ停止我的項目一個R.java類文件,如果我撤消main.xml到默認值,R.java是存在的,並且它的標記是紅色的主機資源reference.eg R.layout.main,R.id.myWebSite

什麼我做錯了嗎?

+0

添加完整的xml文件源 – marcinj 2012-03-12 13:38:15

回答

1
<TableLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_height="fill_parent" 
    android:layout_width="fill_parent"> 

İ認爲你應該刪除id部分。

+0

感謝人們的幫助。發現了錯誤並進行了更正。 – mascourt 2012-03-12 13:42:48