-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flutter build fail because of razorpay package name conflict after upgrading to flutter version 3.24.0 #397
Comments
@neerajapex Thanks for bringing this to our attention. Looking into this. |
@neerajapex So I wasn't able to reproduce the issue with just the version 3.24.0. Would it be possible for you to specify the gradle versions your project is using? |
|
|
@neerajapex thank you. While I look into this, just as a check can you please use the older flutter version you were using and see if this issue is happening there as well? |
@vivekshindhe Thanks for your reply. |
@vivekshindhe I am kind of stuck because of this error. Any direction to resolve this will be very helpful. |
@neerajapex Hey, we are looking into this. I'm not able to reproduce the issue. Not sure what the difference is between your project and mine. Until we get to the bottom of this, can you try reinstalling the razorpay_flutter package in your project? |
@vivekshindhe Thanks. I'll try. |
@vivekshindhe I tried reinstalling the razorpay_flutter package, but I am still getting the same build error. |
@neerajapex will be releasing an update today to resolve this. |
@vivekshindhe Thanks. Waiting for the release. I'll let you know after testing the fix. |
@neerajapex The fix is live. Can you please test it once? As a precaution, please ensure to run |
@vivekshindhe Thanks. Finally, the build issue is gone. 1. gradle-wrapper.properties: Upgrade gradle version: Note: I can't use the 8.x version because I have Java 11 in my system and it needs Java 17. 2. build.gradle: Upgrade Kotlin version: 3. build.gradle: Upgrade gradle tool version 4. Run the following command from the terminal to sync and refresh your gradle dependencies If working in VS Code.
5. Run the Flutter project. |
After day one of upgrading Flutter to Flutter version 3.24.0, I suddenly started getting build issues because of the conflict with the Razorpay package name 'com.razorpay'.
Description
Below is the error log:
Flutter Version :
Flutter 3.24.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 80c2e84975 (9 days ago) • 2024-07-30 23:06:49 +0700
Engine • revision b8800d88be
Tools • Dart 3.5.0 • DevTools 2.37.2
I tried the below approaches with no luck. The build is still failing.
'fvm flutter pub upgrade'
'fvm flutter clean'
'fvm flutter pug get'
Steps To Reproduce
Expected Results
Build should work without error.
Snack, code example, screenshot, or link to a repository:
pubspec.yaml
The text was updated successfully, but these errors were encountered: