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

263
Visualizações
How to Enable Kotlin Android Extensions by Default in Android Studio 4.1

Why kotlin-android-extensions not enabled by default in this latest version of Android Studio? In fact, as long as i know, i have to manually add the plugin in gradle files. Any workaround so that i can add the plugin and enable it automatically everytime i create new project? Thanks before.

ICYMI, this is the code that needs to be added to enable kotlin-android

plugins {
    id 'com.android.application'
    id 'kotlin-android'
    // add kotlin-android-extensions
    id 'kotlin-android-extensions'
}
over 4 years ago · Hanz Gallego
4 Respostas
Responde à pergunta

0

Android studio 4.1 do not support to import kotlin extension

over 4 years ago · Hanz Gallego Relatório

0

In Kotlin 1.4.20-M2 JetBrains deprecated Kotlin Android Extensions compiler plugin.

kotlinx.android.synthetic is no longer a recommended practice. Removing in favour of explicit findViewById

Very sad news :(, i hate viewBinding

over 4 years ago · Hanz Gallego Relatório

0

In this commit you can see the message:

Replaced kotlinx synthetic with findViewById

kotlinx.android.synthetic is no longer a recommended practice. Removing in favour of explicit findViewById.

It says that it is no longer recommended, but that doesn't mean that you should not use it. They are providing guidelines, but you can choose what to use and what not.

Other alternatives:

  1. findViewById
  2. View Binding
over 4 years ago · Hanz Gallego Relatório

0

kotlin-android-extensions is deprecated, you must use view binding

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