简体   繁体   中英

Generate R.Java and Layout - Intellij vs Eclipse

please look at this main.xml -

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

In eclipse its coming out fine, no errors and project is working In Intellij its stopping my project from generating a R.java class file and if I undo the main.xml to the default, R.java is present and its marking red a host of resource reference.eg R.layout.main, R.id.myWebSite

What am I doing wrong?

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

İ think you should remove id part.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM