It seems like even now, adding kotlin-android-exte...
# android
a
It seems like even now, adding kotlin-android-extensions for parcelize only:
Copy code
androidExtensions {
    experimental = true
    features = ["parcelize"]
}
results in synthetic id suggestions in the IDE. Is there a way to address this and disable synthetics completely?
m
try:
Copy code
androidExtensions {
    features = ["parcelize"]
}
(from https://stackoverflow.com/a/55643236/115145)
a
That’s what I have already. Removing the experimental flag does fix it either
m
as I noted in a comment, it worked for me about a month ago
where do you have that closure? it is a top-level closure; it does not go in the
android
closure
a
I have it at top level. So long as the android closure doesn’t have the same method you can have it under
android
as well
m
I just tried it again in a scrap app, and it works. Note that the
import
will still seem OK, but the build will fail saying that it can't find that code. I can't explain that behavior. That's presumably an IDE bug -- I am using AS 3.5.3.
a
I was hoping there would be a solution that would disable the suggestions + import. It’s nice that compilation will fail, but if I’m typing some letters quickly it often suggests the wrong one
m
FWIW, the only issue I see in the tracker that seems tied to this is https://issuetracker.google.com/issues/132655504
a
thanks. will be following it
i
Android Studio can generate parcelize too.
a
I believe last I checked, it still requires the extensions plugin, which is what causes the synthetics to generate
i
the kotlin extension plugin use @parcelize. AS's right click menu put boilerplate on it.
a
I see. In that case I’ll likely stick to the annotation, and hope that a fix for the synthetics are in the works
a
This is a known issue, please vote for https://youtrack.jetbrains.com/issue/KT-25280