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
BUILD FAILED in 852ms
Running Gradle task 'assembleRelease'... 1.364ms
Gradle task assembleRelease failed with exit code 1
Process finished with exit code 1
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.
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
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…