Android R file not generating
I know there are a lot of threads about this but I couldn't find one that solved my problem or is a duplicate.
So I was working on an app, accidently made the mistake of cleaning my project. This caused my R.java
file to disappear. I tried cleaning my project again, building it again, closing eclipse, deleting the gen
folder, checking all of my xml files for errors, all of that.
Problem now is whenever I create a new completely blank application project that doesn't even generate an R
file automatically. I'm hoping there is still a way to restore it for my original project but as I stated nothing seems to work.
It could be if you have deleted
<string name="action_settings">Settings</string>
in the strings.xml, but not deleted main.xml file in the menu folder.
你有没有尝试检查目标API可能api是低尝试做右键点击你的项目>>属性>> andriod >>检查正确的API或检查是否有任何错误,并先修复它们这些步骤使我的r文件产生希望它使你的
I have just had this experience. In my AndroidManifest.xml
there was a reference to a theme which didn't exist.
For instance.
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme_Lorem" >
There wasn't AppTheme_Lorem
among the application's themes
上一篇: com.android.sdklib.build.ApkCreationException:调试证书过期错误
下一篇: Android R文件没有生成