Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read and update data using Room #140

Open
JasonRyanCunningham opened this issue Sep 10, 2024 · 0 comments
Open

Read and update data using Room #140

JasonRyanCunningham opened this issue Sep 10, 2024 · 0 comments

Comments

@JasonRyanCunningham
Copy link

URL of codelab:
https://developer.android.com/codelabs/basic-android-kotlin-compose-update-data-room?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-update-data-room#4

Specify the language of the codelab if it is not English:
English

In which task and step of the codelab can this issue be found?
Task 5: step 13

Describe the problem
Test will not build and run, and does not give a useful error to debug.

Steps to reproduce?
Follow the steps up to Section 5 and insure that the App is running as expected at this point before writing unit tests.
2. Follow steps 1. & 2.
3. Create a new package com.example.inventory in the new directory . This matches previously stated requirements for unit tests, the code example in this code-lab and the solution code. This step should be added to the tutorial either as an additional step or by mentioning it in step 2 when creating the directory.
4. Continue following steps 3 through 12
5. after step 12 run unit test daoInsert_insertsItemIntoDB() as instructed in step 13.
6. Observe error.

Versions
Android Studio version:
Android Studio Koala | 2024.1.1 Patch 2
Build #AI-241.18034.62.2411.12169540, built on August 1, 2024
Runtime version: 17.0.11+0-17.0.11b1207.24-11852314 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.15.0-119-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 3992M
Cores: 16
Registry:
ide.experimental.ui=true
Current Desktop: X-Cinnamon

API version of the emulator:
Pixel 7 API 35

Additional information
I have compared my code written to this point with the solution code in GitHub and do not see any noticeable difference.
Include screenshots if they would be useful in clarifying the problem.
image
ItemDaoTest.kt.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant