https://kotlinlang.org logo
#android
Title
# android
a

arekolek

08/14/2019, 6:29 AM
Anybody usining
@Parcelize
got rid of this lint error?
a

Amirul Zin

08/14/2019, 6:36 AM
You might need to set this:
experimental = true
Copy code
androidExtensions {
    experimental= true 
    features = ["parcelize"]
}
👍 1
e

Eton Otieno

08/14/2019, 6:40 AM
Apply the Kotlin Android Extensions plugin
a

arekolek

08/14/2019, 6:41 AM
@Amirul Zin didn’t stable finally land in 1.3.40?
@Eton Otieno it’s applied, it compiles, it runs fine on the device, it’s just a lint error
a

Amirul Zin

08/14/2019, 6:43 AM
@arekolek I thought so as well. So I just created a simple project using the latest plugin etc without that experimental flag. Its only after I flipped that on, do a rebuild, and then the Lint error went away.
a

arekolek

08/14/2019, 6:48 AM
Weird that it runs just fine though 🤔
g

gildor

08/14/2019, 7:23 AM
Fixed in Android Studio 3.5 for me
👍 2
also this warning is not related on experimental status, it’s just a bug of tooling
o

Olivier Genez

08/14/2019, 9:20 AM
The issue is fixed in upcoming Kotlin 1.3.60 https://youtrack.jetbrains.com/issue/KT-32096
👍 1
👏 2
a

arekolek

04/07/2020, 8:32 AM
In case anybody missed it like me,
@Parcelize
finally should work (since November when 1.3.60 was launched)
👍 1
2 Views