Android Build an Interactive Story App Intents and Multiple Activities Using String Resources

Bummer: Type the value for the 'morePuppies' string exactly as specified in the instructions.

Question: add a new String item named morePuppies with the value "See More Puppies".

My Answer: <?xml version="1.0" encoding="utf-8"?> <resources> <string name = "morePuppies"> "See More Puppies" </string> </resources>

and it throws error named in the title.

Where is the error, pls HELP :))

CodeChallenge.java
Button loadPuppiesButton = (Button) findViewById(R.id.puppiesButton);
String buttonLabel = "";
loadPuppiesButton.setText("LOAD");
strings.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string name = "morePuppies">See More Puppies </string>
</resources>

2 Answers

Binyamin Friedman
Binyamin Friedman
14,602 Points

The error message explains the problem pretty well. You accidentally wrote “See More Puppies ” (with an extra space at the end) instead of “See More Puppies”.

haha you right, excatly :))