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

180
Visualizações
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 Respostas
Responde à pergunta

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 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