-
Notifications
You must be signed in to change notification settings - Fork 32
Build failed: Could not find method jcenter() in react-native-upi-payment/android/build.gradle with Gradle 8+ #71
Description
PS C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app> npm run android
pay4ezy@0.0.1 android
react-native run-android
info Installing the app...
Configure project :react-native-firebase_app
:react-native-firebase_app package.json found at C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app\node_modules@react-native-firebase\app\package.json
:react-native-firebase_app:firebase.bom using default value: 34.4.0
:react-native-firebase_app:play.play-services-auth using default value: 21.4.0
:react-native-firebase_app package.json found at C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app\node_modules@react-native-firebase\app\package.json
:react-native-firebase_app:version set from package.json: 23.5.0 (23,5,0 - 23005000)
:react-native-firebase_app:android.compileSdk using custom value: 36
:react-native-firebase_app:android.targetSdk using custom value: 36
:react-native-firebase_app:android.minSdk using custom value: 24
:react-native-firebase_app:reactNativeAndroidDir C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app\node_modules\react-native
Configure project :react-native-firebase_firestore
:react-native-firebase_firestore package.json found at C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app\node_modules@react-native-firebase\firestore\package.json
:react-native-firebase_app package.json found at C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app\node_modules@react-native-firebase\app\package.json
:react-native-firebase_firestore:firebase.bom using default value: 34.4.0
:react-native-firebase_firestore package.json found at C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app\node_modules@react-native-firebase\firestore\package.json
:react-native-firebase_firestore:version set from package.json: 23.5.0 (23,5,0 - 23005000)
:react-native-firebase_firestore:android.compileSdk using custom value: 36
:react-native-firebase_firestore:android.targetSdk using custom value: 36
:react-native-firebase_firestore:android.minSdk using custom value: 24
:react-native-firebase_firestore:reactNativeAndroidDir C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app\node_modules\react-native
Configure project :react-native-firebase_messaging
:react-native-firebase_messaging package.json found at C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app\node_modules@react-native-firebase\messaging\package.json
:react-native-firebase_app package.json found at C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app\node_modules@react-native-firebase\app\package.json
:react-native-firebase_messaging:firebase.bom using default value: 34.4.0
:react-native-firebase_messaging package.json found at C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app\node_modules@react-native-firebase\messaging\package.json
:react-native-firebase_messaging:version set from package.json: 23.5.0 (23,5,0 - 23005000)
:react-native-firebase_messaging:android.compileSdk using custom value: 36
:react-native-firebase_messaging:android.targetSdk using custom value: 36
:react-native-firebase_messaging:android.minSdk using custom value: 24
:react-native-firebase_messaging:reactNativeAndroidDir C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app\node_modules\react-native
[Incubating] Problems report is available at: file:///C:/Users/amitm/OneDrive/Desktop/pay4ezy%20app/app/android/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.0.0/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
10 actionable tasks: 10 up-to-date
info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
FAILURE: Build failed with an exception.
-
Where:
Build file 'C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app\node_modules\react-native-upi-payment\android\build.gradle' line: 7 -
What went wrong:
A problem occurred evaluating project ':react-native-upi-payment'.
Could not find method jcenter() for arguments [] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.
- 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 generate a Build Scan (Powered by Develocity).
Get more help at https://help.gradle.org.
BUILD FAILED in 11s
error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app\node_modules\react-native-upi-payment\android\build.gradle' line: 7 * What went wrong: A problem occurred evaluating project ':react-native-upi-payment'. > Could not find method jcenter() for arguments [] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler. * 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 generate a Build Scan (Powered by Develocity). > Get more help at https://help.gradle.org. BUILD FAILED in 11s.
info Run CLI with --verbose flag for more details.
PS C:\Users\amitm\OneDrive\Desktop\pay4ezy app\app>