Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Handling Errors Using Dialogs task 2

For some reason I'm getting the error Bummer! It looks like you're missing a <string> element inside the <resources> root element.

when the task is Now switch to strings.xml and add two strings, one named 'dialog_title' and the other named 'dialog_message'. Make the values whatever you choose (just not blank!).

and my code has too string in it as you can see below

<?xml version="1.0" encoding="utf-8"?>
<resources>  
  <String name="dialog_title">oh no!</String>
  <String name="dialog_message">Please try again</String>
</resources>

Can someone help and tell me where it is i am going wrong

I'm having a similar problem with a simple image file. I put the link in my challenge task window, on the left, and the page comes up exactly the way it should, on the right, but I get the error anyway. Please help.

2 Answers

I have found the issue no need for an answer no more all i needed was to change the strings to lowercase

I still don't have an answer. My code is actually error free. All my text is lowercase and the page shows up the way it should yet, I get an error message.

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Hi Stephan Hanna on the line before it and three backticks on the line below it, like this:

```xml

<string name="test">Blah blah!</string>

```

<string name="test">Blah blah!</string>