Skip to content
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

Unable to load Maven meta-data from https://jcenter.bintray.com/com/razorpay/checkout/maven-metadata.xml. #280

Closed
swarupbc opened this issue Oct 30, 2022 · 18 comments

Comments

@swarupbc
Copy link

Description

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'.
> Read timed out

Flutter (Channel stable, 3.3.6, on macOS 13.0 22A380 darwin-arm, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 14.0.1)
razorpay_flutter: ^1.3.3
Screenshot 2022-10-30 at 10 29 25 PM

@webtamizhan
Copy link

Screenshot 2022-10-30 at 10 45 31 PM

Same issue

@swarupbc
Copy link
Author

jcenter.bintray.com is permanently down

@vijayvaghela72
Copy link

hello ,

i am getting same issue recently ,

image

Waiting for solution ,
Thank You in advance ...! :)

@vijayvaghela72
Copy link

@swarup13 sir ,

have you find any solution for this issue ?

@mrinaljain
Copy link

Screenshot 2022-10-31 at 10 16 55 AM

Is there a workaround for this?
Our major release is pending due to this.

@Subrataporwal
Copy link

Screenshot 2022-10-31 at 10 58 18 AM
getting the same issue on Razorpay pub

@vijayvaghela72
Copy link

doe to this issue my work is stopped. please let me know if find any solution .

@akj-anu
Copy link

akj-anu commented Oct 31, 2022

razorpay_flutter: 1.3.2 <== remove the up arrow then try it will work

@AjnasAskar
Copy link

razorpay_flutter: 1.3.2 <== remove the up arrow then try it will work

Its only a temp solution.

@vijayvaghela72
Copy link

vijayvaghela72 commented Oct 31, 2022

i found this solution for now until the not solve you can use this ,

add this lines ,

in app/build.gradle

 constraints {
    implementation('com.razorpay:checkout') {
        version {
            strictly '1.5.0'
            
        }
    }
}


in src/main/AndroidMenifest.xml file 
     
 <activity
        android:name="com.razorpay.CheckoutActivity"
        android:exported="true"
        />
<receiver android:name="com.razorpay.RzpTokenReceiver"
        android:exported="false">
        <intent-filter>
            <action android:name="rzp.device_token.share"/>
        </intent-filter>
    </receiver>

this one working fine for me .

@sreejithmg123
Copy link

razorpay_flutter: 1.3.2 <== remove the up arrow then try it will work

It's not a good practice

@swarupbc
Copy link
Author

@vivekshindhe can you please look into this issue?

@vijayvaghela72
Copy link

in app/build.gradle

constraints {
implementation('com.razorpay:checkout') {
version {
strictly '1.5.0'

    }
}

}

best solution for now

@mohitleo03
Copy link

I am also facing this issue if you guys got any permanent and best solution then please post here.

@sagnik-sanyal
Copy link

sagnik-sanyal commented Oct 31, 2022

guys in your android/build.gradle can you try out , i tried this and it worked out for me :-

allprojects {
repositories {
all { ArtifactRepository repo ->
println repo.url.toString()
if (repo.url.toString().startsWith("https://jcenter.bintray.com/")) {
project.logger.warn "Repository ${repo.url} removed."
remove repo
mavenCentral()
}
}
gradlePluginPortal() // add this if you get further errors
....others
}
}

All credits to -->> https://stackoverflow.com/a/74261483/19295870

@mohitleo03
Copy link

I was just figuring out the solution and found this on official razorpay_flutter git directory, the temp solution is to set the razorpay_flutter version to 1.3.2 without ^ this symbol.
for more solution refer to this link - #280

@Subrataporwal
Copy link

guys in your android/build.gradle can you try out , i tried this and it worked out for me :-

allprojects { repositories { all { ArtifactRepository repo -> println repo.url.toString() if (repo.url.toString().startsWith("https://jcenter.bintray.com/")) { project.logger.warn "Repository ${repo.url} removed." remove repo mavenCentral() } } gradlePluginPortal() // add this if you get further errors ....others } }

All credits to -->> https://stackoverflow.com/a/74261483/19295870

This Solution Works for me too, Thanks @sagnik-sanyal for sharing.
razorpay

@vivekshindhe
Copy link
Contributor

Removed the jcenter inclusion in build.gradle file. Issue fixed on v1.3.4. Thank you for your patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests