First thing to check is that you actually have a button_send string defined... You should have a strings.xml file in the res/values folder. Inside there you should see something like this:
<string name="button_send">Send</string> If that string definition exists, then you need to check your package name. The R class... make sure you are importing/using R.string as opposed to android.R.string... Hope that helps, Justin On Sat, Jan 16, 2016 at 5:02 PM moodamultani <[email protected]> wrote: > Hello friends, > > I was attempting the above module 4 in Lesson 2 (Building your first App) > in the training pages: > > > http://developer.android.com/training/basics/firstapp/starting-activity.html > > This module is titled: Starting Another Activity. > > I am trying this Android Studio 1.5.1 (6.0) API level 23 on Windows 10 > platform (i5 processor). I came across two problems: > > a) when adding a button, the execution failed on the line: > <Button > ..... > android:text="@string/button_send" > ...... /> > > The message is: 'No resource found that matches the given name (at text > with value '@string/button_send').' > > b) I am noticing that the package R is in red throughout this module in my > java classes. Does this mean this is not installed. > > Please could you advise me how to work around these errors? > > Thanks in advance. > > -- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/android-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-developers/88cba043-5ec6-4a09-b0b5-c75ec9b1dfe5%40googlegroups.com > <https://groups.google.com/d/msgid/android-developers/88cba043-5ec6-4a09-b0b5-c75ec9b1dfe5%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/CAOq06s-4DmWm0iRAZEdj_n0WiG566bdpf7S7J23G%3D%2Bk5mQmAJw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

