2012-03-12 67 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