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

339
Views
No se pudo encontrar el método kotlin() para argumentos [gradle-plugin, 1.3.20]

He copiado exactamente lo que dicen los documentos de kotlin gradle para implementar el complemento kotlin gradle, sin embargo, devuelve el siguiente error:

Could not find method kotlin() for arguments [gradle-plugin, 1.3.20] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

mi grado

 buildscript { ext.kotlin_version = '1.3.0' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.3.0' classpath(kotlin("gradle-plugin", version = "1.3.20")) // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } // ext { // navigationVersion = '28.0.0' // } plugins { kotlin("<...>") } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }

¿Alguna idea?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

build.gradle se puede escribir en Groovy o Kotlin. Estás escribiendo tu build.gradle en Groovy (no en Kotlin), pero has copiado el código de Kotlin. Debe seleccionar la pestaña Groovy en la documentación:

 buildscript { repositories { google() jcenter() } dependencies { classpath "com.android.tools.build:gradle:3.3.0" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.20" } }

Aquí: https://kotlinlang.org/docs/reference/using-gradle.html#targeting-android

También puede encontrar un ejemplo decente creando un proyecto vacío de Android y Kotlin.

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!