Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

759
Visualizações
Plugin 'kotlin-parcelize' not found

Google is recommending users to migrate from kotlin-android-extensions to kotlin-parcelize.

However, Gradle sync fails with the following error:

Plugin [id: 'kotlin-parcelize'] was not found in any of the following sources:

- Gradle Core Plugins (not a core plugin, please see https://docs.gradle.org/6.1.1/userguide/standard_plugins.html for available core plugins)
- Plugin Repositories (plugin dependency must include a version number for this source)

Where is the plugin located?

over 4 years ago · Hanz Gallego
7 Respostas
Responde à pergunta

0

In your module level build.gradle file add,

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

In your project level build.gradle file add,

buildscript {
    ...
    repositories {
        google()
        jcenter()
    }
dependencies {
    ...
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32"
    
    }
}

Here '1.4.32' is the Kotlin package version. You will now be able to find the Parcelize package. Also while importing make sure to import,

'import kotlinx.parcelize.Parcelize' package.
over 4 years ago · Hanz Gallego Relatório

0

1. Make sure Gradle should be on Online mode

enter image description here

2. apply plugin: 'kotlin-parcelize'

3. need to upgrade your Kotlin versions 1.4.20 or above and run Gradle sync again.

dependencies {
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21"
}
over 4 years ago · Hanz Gallego Relatório

0

in newest android studio in Nov 2021:

in setting.gradle add this line:

id("org.jetbrains.kotlin.plugin.parcelize") version "1.6.0-M1"

and in build.gradle of module:

 id("org.jetbrains.kotlin.plugin.parcelize")
over 4 years ago · Hanz Gallego Relatório

0

This is the latest september 2021 implementation :

If you're using 'org.jetbrains.kotlin.android' version '1.5.20' or above , and you fail to find the parcelize tag , you can add it using the plugins DSL in the settings.gradle :

plugins {  
 id "org.jetbrains.kotlin.plugin.parcelize" version "1.6.0-M1" 
}

and then call it in your app build.gradle like this :

plugins { 
id 'org.jetbrains.kotlin.plugin.parcelize'
}
over 4 years ago · Hanz Gallego Relatório

0

Try this

in bulid.gradle (Project:*appname*) add:

buildscript {
    
    dependencies {
        ...
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"
    }
}

and in bulid.gradle (Module:*appname*) add:

plugins {
    ...
    id 'org.jetbrains.kotlin.plugin.parcelize'
} 

If it didn't work for you check this link (if there's a new update): https://plugins.gradle.org/plugin/org.jetbrains.kotlin.plugin.parcelize

over 4 years ago · Hanz Gallego Relatório

0

kotlin-parcelize ships with Kotlin Plugin 1.4.20
(Release Announcement: Deprecation of Kotlin Android Extensions)

You need to upgrade your Kotlin versions and run Gradle sync again.

dependencies {
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20"
}
over 4 years ago · Hanz Gallego Relatório

0

1, update your AndroidStudio kotlin version
From menu, select Tools -> Kotlin -> Configure Kotlin Plugin Updates -> choose a kotlin version -> install -> and restart AS

2, update your dependencies classpath with the new kotlin version then sync project (like Brown Smith answer)

3
builld.gradle (:app)

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

MyObject.kt

import kotlinx.parcelize.Parcelize

@Parcelize
class MyObject(val name: String, val age: Int) : Parcelable {

}
over 4 years ago · Hanz Gallego Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda