我正在使用eclipse,並且R.java
文件未生成。我從其他討論中瞭解到,由於佈局內容不正確,這可能是一個問題。這是我的SDK生成的佈局文件。我不確定錯誤是什麼。R.java未生成爲android
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/first_android_app" />
</RelativeLayout>
不在這裏顯示任何錯誤標記? (我注意到的唯一一件事是你的代碼片段中缺少一個 RelativeLayout>) – ConcurrentHashMap
你試過乾淨+構建嗎? –
驗證您是否在項目菜單中有自動建築。你有一個日食錯誤日誌嗎? – throrin19