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 Build a Simple Android App (2014) Creating the Screen Layout Editing a Layout File

Katarina Crea
Katarina Crea
638 Points

Changed ID back

public static final class id {
        public static final int action_settings=0x7f080003;
        public static final int fact textView=0x7f080001;
        public static final int show fact button=0x7f080002;
        public static final int textView2=0x7f080000;
    }Error:(22, 37) error: ';' expected
Error:(22, 46) error: <identifier> expected
Error:(23, 37) error: ';' expected
Error:Execution failed for task ':app:compileDebugJava'.
> Compilation failed; see the compiler error output for details.

is this R.java?? or in main activity??

Katarina Crea
Katarina Crea
638 Points

that is Java it had some red lines under fact and then the error messages are expected Error:(22, 46) error: expected Error:(23, 37) error: ';' expected Error:Execution failed for task ':app:compileDebugJava'. > Compilation failed; see the compiler error output for details.

try clean project-> rebuild project restart ur ide

and more more thing check ur xml layout files... dat should do the trick

Harry James
Harry James
14,780 Points

Hey Katarina!

I was looking through the video questions and saw that this question had no answers.

Can I ask if you have solved this question yet? If not, I will try my best to help out.