8.3.0 homebrew Astudio

Hi all, i’ve upgraded my local install to gradle 8.3.0 via homebrew
When i build apps from Ansroid Studio i’ve this error:

Running Gradle task 'assembleRelease'...                        

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
   > Could not find com.android.tools.build:gradle:8.3.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/8.3.0/gradle-8.3.0.pom
       - https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/8.3.0/gradle-8.3.0.pom
     Required by:
         project :

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Running Gradle task 'assembleRelease'...                         1.364ms
Gradle task assembleRelease failed with exit code 1
Process finished with exit code 1

Some help ?

Don’t confuse Gradle version with Android Gradle Plugin version.
You try to use Android Gradle Plugin version 8.3.0 which does not exist.
The latest release of Android Gradle Plugin is 8.1.0.

Btw. you should never really need to update any installed Gradle version, because any sane Gradle project should contain the 4 Gradle Wrapper files which define the version of Gradle the build is designed for and known working with. You should always execute a Gradle build through the wrapper, which will then make sure the right Gradle version is used. Whether you have a Gradle version installed locally or not and in which version is then irrelevant.

1 Like

ok i understood ! but i’ve this Gradle plugin installed:

i don’t see this 8.1.0 version, whats wrong ?
About my first problem, after some Android Studio restart, i can now use classpath ‘com.android.tools.build:gradle:8.3’ without errors

Thanks for help

ok i understood ! but i’ve this Gradle plugin installed

That’s yet another unrelated version.
That is the IntelliJ (or Android Studio) plugin that provides Gradle support.

i can now use classpath ‘com.android.tools.build:gradle:8.3’

That’s extreeeemly unlikely, not to say impossible, because that version of Android Gradle Plugin does not exist. :slight_smile:

So what’s the right row com.android.tools.build:gradle:x.x.x ?

The one you want to use and exists.
I told you already what the latest existing version is.
Now it is up to you to decide what you want to use.

Sorry if I asked stupid questions but I’ve just been using these things…
However, if I may ask you for clarification:
If I use the line “com.android.tools.build:gradle:8.3”, which does not exist as you told me, the command “flutter build appbundle” generates the app without errors.

how do you explain it?
Sorry again for the ignorant questions…

I have no idea about Flutter or much about Android in general.
I can only say that you can see at https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/8.3/gradle-8.3.pom that 8.3 does not exist and also Android Gradle plugin release notes  |  Android Studio  |  Android Developers is telling that 8.1.0 is the latest version.