我放入Eclipse的所有项目都不读取我拥有的任何布局或按钮引用。Android。 XML布局和按钮引用
喜欢像(R.id.namebutton)
所有(R.layout.main)
和按钮布局的参考文献有“不能得到解决或不是场”的警告适用于所有的按键和布局引用。
他们都昨晚工作。我将所有的XML文件放在布局文件夹中,每个按钮在XML中都有android:id="@+id/"
行。然而,警告依然存在。
这是什么原因造成的?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.Zohan.hozo"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.CALL_PHONE"/>
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".ZohanActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MacAttack"
android:label="@string/app_name" >
</activity>
<activity
android:name=".ConsultationReq"
android:label="@string/app_name" >
</activity>
</application>
</manifest>
请以大写字母开头写写邮次。 –
首先尝试清理并重建项目,因为有时SDK会卡住。如果这不起作用,那么在AndroidManifest.xml文件中查找错误。那里的错误会阻止R被自动生成。 –
清洁没有工作,我添加了我的清单,以防某些东西看起来不适合你。 – user1091368