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 Weather App Hooking Up the Model to the View Plugging in the Data

Daniel Wijaya
PLUS
Daniel Wijaya
Courses Plus Student 1,500 Points

Hi, when I run the program, anyone can help? I have this error error: cannot find symbol class ActivityMainBindingImp

I don't understand what is the error..

3 Answers

Hi Daniel. According to the video, the binding class is ActivityMainBinding, not ActivityMainBindingImp.

The generated binding class name is formatted as such: the name of the layout file (which will show the data you want to bind), followed by Binding, all in Pascal case (like camel case, but starting with a capital letter).

  • If the layout file is called activity_main.xml, the binding class will be ActivityMainBinding (the .xml file extension is omitted).
  • For a layout called activity_details.xml, the binding class will be ActivityDetailsBinding.

Hope that helps :)

Can you post your code?

Daniel Wijaya
PLUS
Daniel Wijaya
Courses Plus Student 1,500 Points

/Users/danielwijaya19/Development/Stormy/app/src/main/java/com/teamtreehouse/stormy/AlertDialogFragment.java: uses or overrides a deprecated API. Recompile with -Xlint:deprecation for details.

Hi, I have this problem when I compiled it. I don't know how to deal with it.

Daniel Wijaya
Daniel Wijaya
Courses Plus Student 1,500 Points

When I run it, there is no run time error, but then it never shows the value accordingly from each statement of @{String.valueOf(weather.temperature)} and etc.

Hi Daniel. "uses or overrides a deprecated API. Recompile with -Xlint:deprecation for details." is just a warning, not an error. With regard to your comment, so what values does it show?