android / android/codelab-android-workmanager

super() does not accept parameters as the instructions said.

Open
#293 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
557
Forks
242
PR merge metrics
No merged PRs in 30d

Description

Hello
I got an error while following the tutorial.
Can you please let me know if my solution is right or if I need to do something else? The details are below.
Thank you,
Alan

Link: https://developer.android.com/codelabs/android-workmanager-java#3
Course: Background Work with WorkManager - Java
Section: Make your first WrokRequest
Step 4: Get WrorkManager in the viewModel

Error:
![image](https://user-images.githubusercontent.com/81703131/168904106-5ef384e3-31bc-4c82-a215-f0b6bec34f55.png)

Solution: Use super() with no parameters

Contributor guide

Open the contributing guide

Research direction

Open the linked Android WorkManager Java codelab and review Section 3, “Make your first WorkRequest,” Step 4, “Get WorkManager in the viewModel.” Compare the instruction about super() with the reported no-parameter solution; done when the tutorial guidance matches the code that compiles.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.