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
Amit Biswas
351 PointsGot 2 errors in Style.xml file (1) Top level element isn't completed (2) valid xml documents must have aroot tag
Got 2 errors in Style.xml file
(1) Top level element isn't completed (2) valid xml documents must have a root tag
6 Answers
George Pirchalaishvili
3,747 PointsPost your Style.xml code here please.
Amit Biswas
351 Points<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.Holo.Light.Dialog.NoActionBar">
<!-- Customize your theme here. --> </style>
</resources>
George Pirchalaishvili
3,747 PointsTry adding this before code
<?xml version="1.0" encoding="utf-8"?>
<resources>
and this after
</resources>
Amit Biswas
351 Pointsok
but I cant Run my App . when I press the Run menu ,bottom of the Edit configaration .." Default Activity not found "
George Pirchalaishvili
3,747 PointsOk, but did this fix your string.xml errors?
Amit Biswas
351 Pointsno it does not fix yet
Amit Biswas
351 Pointsmy errors are ...in the "" Style.xml "" file .plz cheack over there