razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
106 stars 149 forks source link

Could not resolve com.razorpay:checkout:1.6.+ #406

Closed parth-devloper121 closed 2 months ago

parth-devloper121 commented 2 months ago

What went wrong: Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not resolve com.razorpay:checkout:1.6.+. Required by: project :app > project :razorpay_flutter Failed to list versions for com.razorpay:checkout. Unable to load Maven meta-data from https://jcenter.bintray.com/com/razorpay/checkout/maven-metadata.xml. Could not HEAD 'https://jcenter.bintray.com/com/razorpay/checkout/maven-metadata.xml'. Received status code 500 from server: Internal Server Error

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 15s Error: Gradle task assembleDebug failed with exit code 1

Please fix this asap.

wrteam-vimal commented 2 months ago

Same issue here

Schreezer commented 2 months ago

same issue here

niladri-raychaudhuri commented 2 months ago

Try this https://github.com/razorpay/razorpay-flutter/issues/400#issuecomment-2285365867

wrteam-anish commented 2 months ago
  razorpay_flutter:
    git:
      url: https://github.com/wrteam-anish/razorpay-flutter.git

try this

vivekshindhe commented 2 months ago

Hey folks, the issue is not with the razorpay-checkout SDK but with mavenCentral. The razorpay-flutter package does not use jcenter. You can verify this here. Also attaching the link to the site which states the outage in OSSRH (mavenCentral) which is why we are seeing this issue. The issue is also different for each because using a specific version has been working for some folks, while it hasn’t for others. You can try to use https://github.com/razorpay/razorpay-flutter/issues/400#issuecomment-2285365867 (Thank you @niladri-raychaudhuri for explaining the steps) fix temporarily to see if that would resolve it for you, while we look into resolving this from our end.

Jeel8120 commented 2 months ago

Manually change build.gradle of razorpay_flutter Change this api 'com.razorpay:checkout:1.6.41' instand of api 'com.razorpay:checkout:1.6.+'

ankitunada commented 2 months ago

PaymentSuccessResponse data not found

static void handlePaymentSuccess(PaymentSuccessResponse response) async { // Utility.ShowToastpositive("success ${response.data}"); // logger.d(response.data); if (response.data != null) { if (response.data!["razorpay_payment_id"] != null) { await captureOnlinePayment( payId: response.data!["razorpay_payment_id"]); razorpay.clear(); } } else { razorpay.clear(); } }

  razorpay_flutter:
    git:
      url: https://github.com/wrteam-anish/razorpay-flutter.git

try this

vivekshindhe commented 2 months ago

Hey folks, seems like the issue on mavenCentral is resolved. You can check the latest status here. Please try to run ./gradlew --refresh-dependencies or ./gradle --refresh-dependencies or run Sync project with Gradle files in Android studio when the android project is opened.

ankitunada commented 2 months ago

Manually change build.gradle of razorpay_flutter Change this api 'com.razorpay:checkout:1.6.41' instand of api 'com.razorpay:checkout:1.6.+'

it works for me thanks

nimesh-devloper commented 2 months ago

Hey folks,

I think Maven Central has resolved this issue, now just run the flutter clean and flutter pub get commands in your Terminal and it will work again.

iamdeepakg21 commented 2 months ago

If you're still facing the same issue, try downgrading your Flutter version to 3.22.2. It worked for me.