Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

174
Vistas
I can't apply the gradle 6.x plugin

It says I'm supposed to write:

plugins {
id "com.gradle.enterprise" version "3.5"
}

gradleEnterprise {
server = "https://gradle-enterprise.mycompany.com"
}

On the settings.gradle file according to: https://docs.gradle.com/enterprise/gradle-plugin/

But then I get an error saying:

2: Only Project build scripts can contain plugins {} blocks

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

So I seem to have this working.

Please ensure plugins and and gradleEnterprise blocks are the first and second lines in the file respectively or you will get an error:

settings.gradle:

plugins {
    id 'com.gradle.enterprise' version '3.5'
}

gradleEnterprise {
    // configuration
}

include ':app'
rootProject.name = "My Application"

My Current Gradle plugin versions are as follows (File→Project Structure):

enter image description here

And it all builds fine.

PS: I was getting an error: This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.1 or newer. I had to update my android studios to the latest as well (4.1.1) and all worked a charm.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda