Saurabh Mehta
12/19/2023, 11:52 AMTried searching on stackoverflow but things didn't work out. Also, I have done same type of implemenation in 3 other Android Projects and all are working just fine. Any help in this regard is greatly appreciated. Thank youkotlinx.serialization compiler plugin is not applied to the module, so this annotation would not be processed. Make sure that you've setup your buildscript correctly and re-import project.
Saurabh Mehta
12/19/2023, 11:53 AMIsaac Akakpo
12/19/2023, 2:20 PMIsaac Akakpo
12/19/2023, 2:25 PMSaurabh Mehta
12/19/2023, 2:46 PMIsaac Akakpo
12/19/2023, 2:49 PMkotlin("plugin.serialization") version "1.8.0"
Groovy :
id 'org.jetbrains.kotlin.plugin.serialization' version '1.9.21'
Saurabh Mehta
12/19/2023, 8:38 PM// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript *{*
_extra_._apply_ *{*
set("kotlin_version", "1.9.21")
set("nav_version", "2.7.5")
}
_repositories_ *{*
google()
mavenCentral()
maven *{* setUrl("<https://jitpack.io>") *}*
}
dependencies *{*
val kotlinVersion = _rootProject_._extra_.get("kotlin_version")
_classpath_("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
val navVersion = _rootProject_._extra_.get("nav_version")
_classpath_("androidx.navigation:navigation-safe-args-gradle-plugin:$navVersion")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins *{*
id("com.android.application") _version_ "8.2.0" _apply_ false
id("com.android.library") _version_ "8.2.0" _apply_ false
id("com.google.gms.google-services") _version_ "4.4.0" _apply_ false
id("com.google.devtools.ksp") _version_ "1.9.21-1.0.16" _apply_ false
id("com.google.firebase.firebase-perf") _version_ "1.4.2" _apply_ false
id("com.google.firebase.crashlytics") _version_ "2.9.9" _apply_ false
id("com.google.dagger.hilt.android") _version_ "2.48" _apply_ false
kotlin("jvm") version "1.9.21" apply false
_kotlin_("plugin.serialization") _version_ "1.9.21" _apply_ false
_kotlin_("android") _version_ "1.9.21" _apply_ false
}
Saurabh Mehta
12/19/2023, 8:39 PMplugins *{*
id("com.android.application")
id("com.google.gms.google-services")
_kotlin_("android")
id("androidx.navigation.safeargs")
id("dagger.hilt.android.plugin")
id("com.google.firebase.firebase-perf")
id("com.google.devtools.ksp")
id("kotlinx-serialization")
_kotlin_("kapt")
id("com.google.firebase.crashlytics")
}