Closed jh115424 closed 10 months ago
Hello,
It looks like you didn't download the "starter package", as in there, the MainActivity.kt is empty. To be sure that you downloaded the starter package when navigating to the GitHub link, be sure to choose "starter package" in branch options:
In case you added the code yourself, this is not the error of the starter package, but a user error.
Try not to copy-paste by reading every line on CodeLab. Try to understand the reasons they are there and why it is written like that.
In case of your issue, to call setupActionBarWithNavController(navController) you need to import:
import androidx.navigation.ui.setupActionBarWithNavController
In your case you have imported:
import androidx.navigation.ui.NavigationUI.setupActionBarWithNavController
Try this fix and report back please.
Thanks, this was actually resolved, but I am waiting for another reply on a different project. I sent it to Guilhermo, but did not hear back. It is on the lunch tray app. I ran the project and got a compile error.
There screen shot is in the Github.com "Issues" section. I posted the reply 4 days ago. Just scroll all the way down and you will see the Logcat.
I can't send the screen shot here, because it does not open on your end from this email. Check my reply in Github and you will see the screen shot for the lunch tray app.
It is Lunchtray app #20
thanks
Jennifer Hodge
Internet Sales
414-586-5425
Russ Darrow Honda
[cid:1d72284e-c2fc-4c10-88dd-9da303b7f8e6]https://your.tradeinvalet.com/tdhe0j
From: Elbay Malik @.> Sent: Monday, March 7, 2022 2:30 PM To: google-developer-training/android-basics-kotlin-cupcake-app @.> Cc: Jennifer Hodge @.>; Author @.> Subject: Re: [google-developer-training/android-basics-kotlin-cupcake-app] Android Basics: MORE STARTER CODE ERRORS, ANOTHER PROJECT! CUPCAKE (Issue #55)
CAUTION: External Sender
Hello,
It looks like you didn't download the "starter package", as in there, the MainActivity.kt is empty. To be sure that you downloaded the starter package when navigating to the GitHub link, be sure to choose "starter package" in branch options: [image]https://user-images.githubusercontent.com/27622683/157111021-f83ab3e4-f5e1-4758-8e4d-24b94ba5f8c0.png
In case you added the code yourself, this is not the error of the starter package, but a user error.
Try not to copy-paste by reading every line on CodeLab. Try to understand the reasons they are there and why it is written like that.
In case of your issue, to call setupActionBarWithNavController(navController) you need to import: import androidx.navigation.ui.setupActionBarWithNavController In your case you have imported: import androidx.navigation.ui.NavigationUI.setupActionBarWithNavController
Try this fix and report back please.
— Reply to this email directly, view it on GitHubhttps://github.com/google-developer-training/android-basics-kotlin-cupcake-app/issues/55#issuecomment-1061106675, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVXNC3A4ZYTZNHCXFNBEFADU6ZRPLANCNFSM5NYPLBQA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>
CONFIDENTIALITY NOTICE: This electronic mail transmission and any attachments are confidential and may be privileged. They should be read or retained only by the intended recipient. If you have received this transmission in error, please notify the sender immediately and delete the transmission from your system.
I am also stuck on this part...it is the Water Me! app
I have been stuck here for 3 days now. What else am I missing?
please help.
thanks
// TODO: create a Data instance with the plantName passed to it
val data = Data.Builder(WaterReminderWorker to scheduleReminder(plantName =)
Jennifer Hodge
Internet Sales
414-586-5425
Russ Darrow Honda
[cid:36e4dbf3-a2e8-4339-b4ff-9e9e6e87e6c6]https://your.tradeinvalet.com/tdhe0j
From: Elbay Malik @.> Sent: Monday, March 7, 2022 2:30 PM To: google-developer-training/android-basics-kotlin-cupcake-app @.> Cc: Jennifer Hodge @.>; Author @.> Subject: Re: [google-developer-training/android-basics-kotlin-cupcake-app] Android Basics: MORE STARTER CODE ERRORS, ANOTHER PROJECT! CUPCAKE (Issue #55)
CAUTION: External Sender
Hello,
It looks like you didn't download the "starter package", as in there, the MainActivity.kt is empty. To be sure that you downloaded the starter package when navigating to the GitHub link, be sure to choose "starter package" in branch options: [image]https://user-images.githubusercontent.com/27622683/157111021-f83ab3e4-f5e1-4758-8e4d-24b94ba5f8c0.png
In case you added the code yourself, this is not the error of the starter package, but a user error.
Try not to copy-paste by reading every line on CodeLab. Try to understand the reasons they are there and why it is written like that.
In case of your issue, to call setupActionBarWithNavController(navController) you need to import: import androidx.navigation.ui.setupActionBarWithNavController In your case you have imported: import androidx.navigation.ui.NavigationUI.setupActionBarWithNavController
Try this fix and report back please.
— Reply to this email directly, view it on GitHubhttps://github.com/google-developer-training/android-basics-kotlin-cupcake-app/issues/55#issuecomment-1061106675, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVXNC3A4ZYTZNHCXFNBEFADU6ZRPLANCNFSM5NYPLBQA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>
CONFIDENTIALITY NOTICE: This electronic mail transmission and any attachments are confidential and may be privileged. They should be read or retained only by the intended recipient. If you have received this transmission in error, please notify the sender immediately and delete the transmission from your system.
URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-training-shared-viewmodel?authuser=1&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-3-pathway-4%3Fauthuser%3D1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-shared-viewmodel#2
In which task and step of the codelab can this issue be found?
STEP 3
This is the Cupcake app. This is the 4 starter project with a error and no way to import it! I am not doing anymore Android studio until you fix your projects.
Describe the problem
see the screen shots. what is red has no way to import, so what am I supposed to do? Can you add it? I have other emails with other started projects I can't do because they are full of errors!
Steps to reproduce?
Versions Android Studio version: API version of the emulator:
Additional information Include screenshots if they would be useful in clarifying the problem.