Describe the issue
For some reason, the build.gradle for Android uses jcenter()...which has been deprecated for quite some time now.
Here is the log:
A problem occurred evaluating project ':square_in_app_payments'.
> Could not find method jcenter() for arguments [] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.
* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating project ':square_in_app_payments'.
Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method jcenter() for arguments [] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.
To Reproduce
Steps to reproduce the issue.
Simply open Android Studio and wait for it to import the Gradle project.
Environment:
- platform: Android
- OS and version: Android 15
- dev environment: MacOS
- In-App Payments Plugin version: ^1.7.11
Flutter doctor:
[✓] Flutter (Channel stable, 3.41.6, on macOS 26.4 25E246 darwin-arm64, locale en-US) [237ms]
• Flutter version 3.41.6 on channel stable at /Users/ianro/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision db50e20168 (3 weeks ago), 2026-03-25 16:21:00 -0700
• Engine revision 425cfb54d0
• Dart version 3.11.4
• DevTools version 2.54.2
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios,
cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [867ms]
• Android SDK at /Users/ianro/Library/Android/sdk
• Emulator version 36.5.10.0 (build_id 15081367) (CL:N/A)
• Platform android-36, build-tools 36.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: flutter config --jdk-dir="path/to/jdk".
• Java version OpenJDK Runtime Environment (build 21.0.10+-117844308-b1163.108)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 26.4) [498ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 17E192
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [4ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Network resources [220ms]
• All expected network resources are available.
• No issues found!
Additional context
I'm pretty sure replacing it with mavenCentral() can be used to solve the problem, but it would be nice to see it in an official update so I don't have to manually replace it each time on different computers. :)
Describe the issue
For some reason, the build.gradle for Android uses jcenter()...which has been deprecated for quite some time now.
Here is the log:
To Reproduce
Steps to reproduce the issue.
Simply open Android Studio and wait for it to import the Gradle project.
Environment:
Flutter doctor:
[✓] Flutter (Channel stable, 3.41.6, on macOS 26.4 25E246 darwin-arm64, locale en-US) [237ms]
• Flutter version 3.41.6 on channel stable at /Users/ianro/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision db50e20168 (3 weeks ago), 2026-03-25 16:21:00 -0700
• Engine revision 425cfb54d0
• Dart version 3.11.4
• DevTools version 2.54.2
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios,
cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [867ms]
• Android SDK at /Users/ianro/Library/Android/sdk
• Emulator version 36.5.10.0 (build_id 15081367) (CL:N/A)
• Platform android-36, build-tools 36.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use:
flutter config --jdk-dir="path/to/jdk".• Java version OpenJDK Runtime Environment (build 21.0.10+-117844308-b1163.108)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 26.4) [498ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 17E192
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [4ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Network resources [220ms]
• All expected network resources are available.
• No issues found!
Additional context
I'm pretty sure replacing it with mavenCentral() can be used to solve the problem, but it would be nice to see it in an official update so I don't have to manually replace it each time on different computers. :)