Hello, ```plugins { id 'kotlin-parcelize' }```...
# gradle
v
Hello,
Copy code
plugins {
    id 'kotlin-parcelize'
}
i am putting this code module:Android.app gradle file but it giving error.
Could not compile build file '/Users/ABC/StudioProjects/APPLICATION/app/build.gradle'.
> startup failed:
build file '/Users/ABC/StudioProjects/APPLICATION/app/build.gradle': 9: only buildscript {} and other plugins {} script blocks are allowed before plugins {} blocks, no other statements are allowed
message has been deleted
s
move apply plugin lines below plugins block, or write apply plugin: ‘kotlin-parcelize’ instead
v
if i am using
Copy code
apply plugin: 'kotlin-parcelize'
Exception is:
org.gradle.api.ProjectConfigurationException:Caused by: org.gradle.api.GradleException: :app: 'kotlin-parcelize' can't be applied together with 'kotlin-android-extensions'
s
android-extensions is parcelize+synthetics
if you don’t use synthetics, you can delete kotlin-android-extensions
v
i am using synthetics
so any other solution for that?
s
either you migrate your synthetics to viewbinding, or leave everything as it was before
v
okk thanks
s
but synthetics support will be removed in september
v
ok i'll removed that before
s
and you probably won’t be able to update AGP to newer versions while keeping synthetics I think
v
thanks a million
👍 1
okk