In which task and step of the codelab can this issue be found?
Setup click listeners using listener binding
Describe the problem
In the layout xml files for fragment_flavor.xml and fragment_pickup.xml, the lines
android:onClick="@{() -> flavorFragment.goToNextScreen()}"
android:onClick="@{() -> pickupFragment.goToNextScreen()}"
do not compile. "goToNextScreen() results in "Cannot find identifier".
Steps to reproduce?
Go to...
Click on...
See error...
VersionsAndroid Studio version:API version of the emulator:
Bumblebee 2021.1.1 Patch 1
Build # AI-211.7628.21.2111.8139111 on Feb 1, 2022
Additional informationInclude screenshots if they would be useful in clarifying the problem.
URL of codelab https://github.com/google-developer-training / android-basics-kotlin-cupcake-app
In which task and step of the codelab can this issue be found?
Describe the problem In the layout xml files for fragment_flavor.xml and fragment_pickup.xml, the lines android:onClick="@{() -> flavorFragment.goToNextScreen()}" android:onClick="@{() -> pickupFragment.goToNextScreen()}" do not compile. "goToNextScreen() results in "Cannot find identifier".
Steps to reproduce?
Versions Android Studio version: API version of the emulator: Bumblebee 2021.1.1 Patch 1 Build # AI-211.7628.21.2111.8139111 on Feb 1, 2022
Additional information Include screenshots if they would be useful in clarifying the problem.