I'm facing a strange problem on my android project. I'm write some strings inside strings.xml file, and i'll retrieve it from my code with
context.getString(R.string.resource_id);
and from xml
android:text="@string/resource_id"
I've addedd several strings, but the last i'm adding give me problems. The problem is that string resource id is not found (it seems that eclipse don't generate the reference inside R file). I've already try different solutions like:
clean project fix project proprieties restart ide and all combinations of this actions, but nothing happen. I'm stuck and frustrated about this problem. How can i solve?
Usually I got this problem when I had a bad xml reference in some layout or menu. Try to find it then rebuild your project and Eclipse will regenerate the correct R file
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.