1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] Plugin [id: 'com.android.application', version: '8.3.0', apply: false] was not found...

Discussão em 'Mobile' iniciado por Stack, Outubro 10, 2024 às 09:23.

  1. Stack

    Stack Membro Participativo

    This error appears when I try to run Gradle Run:

    Plugin [id: 'com.android.application', version: '8.3.0', apply: false] was not found in any of the following sources:

    - Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
    - Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:8.3.0')
    Searched in the following repositories:
    Gradle Central Plugin Repository
    Google
    MavenRepo


    My Build.Gradle Properties is the following:

    buildscript {
    ext.kotlin_version = '1.7.10'
    repositories {
    google()
    mavenCentral()
    }

    dependencies {
    classpath 'com.android.tools.build:gradle:8.3.0'
    // START: FlutterFire Configuration
    classpath 'com.google.gms:google-services:4.3.10'
    // END: FlutterFire Configuration
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
    }
    plugins{
    id 'com.android.application' version '8.3.0' apply false
    id 'com.android.library' version '8.3.0' apply false
    id 'org.jetbrains.kotlin.android' version '1.8.10' apply false
    }

    allprojects {
    repositories {
    google()
    mavenCentral()
    }
    }

    rootProject.buildDir = '../build'

    subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
    project.evaluationDependsOn(':app')
    }

    task clean(type: Delete) {
    delete rootProject.buildDir
    }

    tasks.withType(JavaCompile) {
    options.release('17.0.8.1')
    }

    org.gradle.java.home ='/usr/bin/java'


    I've tried everything from putting the plugins commands outside buildscript and also using pluginManagement but nothing works

    Continue reading...

Compartilhe esta Página