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 trialswagmlg345yt
2,789 Pointsi'm getting an error when i copy and pasted your code to the strings.xml Error: page0 has been already defined.
so i followed your video but when i paste your code but i get an error message i cant paste the error message because it doesn't let me but here is my code: <resources> <string name="app_name">Signals from Mars</string> <string name="key_name">name</string> <string name="signals_from_mars_title_image">Signals from Mars title image</string> <string name="start_your_adventure">START YOUR ADVENTURE</string> <string name="enter_your_name">Enter your name</string> <string name= "page0"><string name="page0">On your return trip from studying Saturn\'s rings, you hear a distress signal that seems to be coming from the surface of Mars. It\'s strange because there hasn\'t been a colony there in years. Even stranger, it\'s calling you by name: \"Help me, %1$s, you\'re my only hope.\"</string> <string name="page0_choice1">Stop and investigate</string> <string name="page0_choice2">Continue home to Earth</string>
<string name="page1">You deftly land your ship near where the distress signal originated. You didn\'t notice anything strange on your fly-by, but there is a cave in front of you. Behind you is an abandoned rover from the early 21st century.</string> <string name="page1_choice1">Explore the cave</string> <string name="page1_choice2">Explore the rover</string>
<string name="page2">You continue your course to Earth. Two days later, you receive a transmission from HQ saying that they have detected some sort of anomaly on the surface of Mars near an abandoned rover. They ask you to investigate, but ultimately the decision is yours because your mission has already run much longer than planned and supplies are low.</string> <string name="page2_choice1">Head back to Mars to investigate</string> <string name="page2_choice2">Continue home to Earth</string>
<string name="page3">Your EVA suit is equipped with a headlamp, which you use to navigate the cave. After searching for a while your oxygen levels are starting to get pretty low. You know you should go refill your tank, but there\'s a very faint light up ahead.</string> <string name="page3_choice1">Refill at ship and explore the rover</string> <string name="page3_choice2">Continue towards the faint light</string>
<string name="page4">The rover is covered in dust and most of the solar panels are broken. But you are quite surprised to see the on-board system booted up and running. In fact, there is a message on the screen: \"%1$s, come to 28.543436, -81.369031.\" Those coordinates aren\'t far, but you don\'t know if your oxygen will last for a trip there and back.</string> <string name="page4_choice1">Explore the coordinates</string> <string name="page4_choice2">Return to Earth</string>
<string name="page5">After a long walk slightly uphill, you end up at the top of a small crater. You look around, and are overjoyed to see your favorite android, %1$s-S1124. It had been lost on a previous mission to Mars! You take it back to your ship and fly back to Earth.</string>
<string name="page6">You arrive home on Earth. While your mission was a success, you forever wonder what was sending that signal. Perhaps a future mission will be able to investigate…</string></string> </resources>
1 Answer
Moira Lawrie-Martyn
8,073 Points<string name= "page0"><string name="page0">
You've got this tag twice so it thinks there's two "page0"s