Fixed
Status Update
Comments
ac...@google.com <ac...@google.com>
je...@google.com <je...@google.com>
cm...@google.com <cm...@google.com>
cm...@google.com <cm...@google.com> #2
i'm afraid this is not that trivial with nullable fields in the database.
right now, Room always finds 1 constructor. For this to work, we'll need to find all constructors, check which fields are null in the cursor and call the right constructor.
otherwise, calling the default one might result in Room passing null values into it when they are non-null.
right now, Room always finds 1 constructor. For this to work, we'll need to find all constructors, check which fields are null in the cursor and call the right constructor.
otherwise, calling the default one might result in Room passing null values into it when they are non-null.
am...@google.com <am...@google.com> #4
Ahh, I didn't know room used `@JvmOverloads` constructors. Neat!
Description
DESCRIBE THE ISSUE IN DETAIL:
This project has a Gradle module who's main responsibility is packaging non-trivial library code such that it is consumable by the app's build. This is the only place in our project where source sets are customized. Commenting out this code results in a working build, but the app fails at runtime due to the missing library code. This code worked in AGP 7.3.1 and earlier.
STEPS TO REPRODUCE:
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply
all required information.
Studio Build: Electric Eel Version of Gradle Plugin: 7.4.0 Version of Gradle: 7.5, 7.5.1, 7.6 Version of Java: 11, 17 OS: macOS 12