Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

298
Views
¿Cómo usar @Parcelize ahora que kotlin-android-extensions está en desuso?

¿Cómo reemplazo annotation class Parcelize del package kotlinx.android.parcel con Parcelize que no proviene del complemento kotlin-android-extensions?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Simplemente actualice su importación

de: import kotlinx.android.parcel.Parcelize

a: import kotlinx.parcelize.Parcelize

over 4 years ago · Santiago Trujillo Report

0

con maravilloso

build.gradle (nivel de proyecto)

 dependencies { // .... project level dependencies // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20-RC" }

build.gradle (nivel de aplicación)

 plugins { ... id 'kotlin-parcelize' }

y la clase de datos

 import android.os.Parcelable import kotlinx.parcelize.Parcelize @Parcelize class User( val firstName: String, val lastName: String, val age: Int ): Parcelable

puede encontrar la última versión aquí https://plugins.gradle.org/plugin/org.jetbrains.kotlin.plugin.parcelize

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!