Hi, I searched the slack archives to try to find a...
# community-support
a
Hi, I searched the slack archives to try to find an answer for this issue, but didn't find one. I'm currently unable to build my project because I'm getting an error that says: Plugin [id: 'com.android.application', version: '8.5', 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.applicationcom.android.application.gradle.plugin8.5') Searched in the following repositories: Google MavenRepo Gradle Central Plugin Repository Here is what I've done today: *Upgraded Flutter to 3.29.1 *Updated Android Studio to Meerkat 2024.3.1 *Updated Gradle Wrapper to 8.5 (had to change gradle.properties org.gradle.jvmargs=-Xmx512M -Xms100M) *Changed gradle-wrapper.properties distributionUrl=https\:<//services.gradle.org/distributions/gradle-8.5-bin.zip> *Changed settings.gradle com.android.application version: plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "com.android.application" version "8.5" apply false id "org.jetbrains.kotlin.android" version "1.8.20" apply false } *Java version is 21.0.5 per flutter doctor: [√] Android Studio (version 2024.3) [47ms] • Android Studio at C:\Program Files\Android\Android Studio2 • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • android-studio-dir = C:\Program Files\Android\Android Studio2 • Java version OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29) *Error when building: FAILURE: Build failed with an exception. * Where: Settings file 'D:\MF6git\PhoneSupport\android\settings.gradle' line: 21 * What went wrong: Plugin [id: 'com.android.application', version: '8.5', 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.applicationcom.android.application.gradle.plugin8.5') Searched in the following repositories: Google MavenRepo Gradle Central Plugin Repository * 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.
Has anyone seen this and would you be able to help me fix it? I am using Visual Studio Code.
s
https://developer.android.com/build/releases/past-releases/agp-8-5-0-release-notes seems to indicate the version is actually 8.5.0, not 8.5. Also, the page says you need Gradle 8.7 for it.
👆 1
(there are also 8.5.1 and 8.5.2 down the page)
a
Thank you for your response!