I added one xml file in layout. After that this error is coming. But the problem is I haven't touched R.java file. Now in my new activity i m going to set its content view as my newly created xml file, but when i m doing R.layout., the newly created xml is not coming in suggestion. Do anybody have any idea how to correct this. I have cleaned my project several times but it is not working.
Delete R.java
and let eclipse regenerate it, then project --> clean will fix it.
Check if you have any existing errors in your code, if yes correct it and then try refreshing and building your Project.If your Project is properly build,you will get the new xml file in suggestion
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With