Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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?