Android Build a Weather App Hooking Up the Model to the View Plugging in the Data

Daniel Wijaya
PRO
Daniel Wijaya
Pro 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

Lauren Moineau
Lauren Moineau
9,344 Points

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 ActivityMainBindind (the .xml file extension is omitted).
  • For a layout called activity_details.xml, the binding class will be ActivityDetailsBinding.

Hope that helps :)

Daniel Wijaya
PRO
Daniel Wijaya
Pro 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
Pro 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.

Lauren Moineau
Lauren Moineau
9,344 Points

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?