Status Update
Comments
xa...@google.com <xa...@google.com> #2
Thanks for the report! It looks like the lint check in ParcelChecker.java
has to be updated to account for the new behavior on sealed classes. Right now the checker just @Parcelize
annotations@Parcelize
.
ad...@google.com <ad...@google.com>
ho...@google.com <ho...@google.com> #4
targetSdkVersion is the last fallback option when the sdk level is not configured using other ways. If the user has not conveyed at all which sdk version it should be using, it will use target sdk version.
See
ho...@google.com <ho...@google.com> #5
Is there a stack trace for this issue? It could be something else, maybe an issue with manifest parsing.
xa...@google.com <xa...@google.com> #6
"If the user has not conveyed at all which sdk version it should be using" how is that done exactly when running robolectric from Gradle?
ad...@google.com <ad...@google.com>
xa...@google.com <xa...@google.com>
al...@google.com <al...@google.com> #7
I did a little research: AGP suppose to call ProcessTestManifest to generate manifests for unit tests. This task calls Manifest merger with ManifestMerger2.MergeType.APPLICATION as a parameter. It's going with type PACKAGED_MANIFESTS. This makes targetSdk appears in merged manifest even if it was not defined (falling back to minSdk). Experimented with ProcessTestManifestTest.testUnitTestManifestPlaceholdersFromVariantApi
Some additional information like error or stack trace will be helpful.
au...@google.com <au...@google.com> #8
I am not sure what trace to provide other than that targetSdkVersion in the manifest file should be there or robolectric will pick the wrong SDK version.
Description