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 Getting to Know Our Tools

Herschel Greenspan
Herschel Greenspan
890 Points

What did i do wrong here public static final class id { public static final int idName=0x7f0c0050;

It looks more like this.

public static final class id { public static final int idName=0x7f0c0050; public static final int action0=0x7f0c0052; public static final int action_bar=0x7f0c0040; public static final int action_bar_activity_content=0x7f0c0000; public static final int action_bar_container=0x7f0c003f; public static final int action_bar_root=0x7f0c003b; public static final int action_bar_spinner=0x7f0c0001; public static final int action_bar_subtitle=0x7f0c0024; public static final int action_bar_title=0x7f0c0023; public static final int action_context_bar=0x7f0c0041; public static final int action_divider=0x7f0c0056; public static final int action_menu_divider=0x7f0c0002; public static final int action_menu_presenter=0x7f0c0003; public static final int action_mode_bar=0x7f0c003d; public static final int action_mode_bar_stub=0x7f0c003c; public static final int action_mode_close_button=0x7f0c0025; public static final int action_settings=0x7f0c005f;

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

Try a Clean and Rebuild. If it still gives you issues let us know what the error message is.

Herschel Greenspan
Herschel Greenspan
890 Points

Thanks for the info. Here is the error.

Error:(1572, 33) error: variable idName is already defined in class id Note: C:\Users\Hershey\AndroidStudioProjects\MyFunFacts\app\src\main\java\com\example\hershey\myfunfacts\MyFunFacts.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error:Execution failed for task ':app:compileDebugJava'.

Compilation failed; see the compiler error output for details.