px-android
px-android copied to clipboard
it is not possible to import the library into the project
I am unable to add the library to my project. Tried to change the version of kotlin, gradle and other dependencies, but still with no result. Is there anything else I can do?
Below is the log:
Task failed with an exception. What went wrong: Execution failed for task ':sample:checkDebugAarMetadata'. Could not resolve all files for configuration ':sample:debugRuntimeClasspath'. Could not find any matches for com.mercadopago.android.px:checkout:4.+ as no versions of com.mercadopago.android.px:checkout are available. Searched in the following locations:
Task failed with an exception. What went wrong: Execution failed for task ':sample:mergeDebugNativeLibs'. Could not resolve all files for configuration ':sample:debugRuntimeClasspath'. Could not find any matches for com.mercadopago.android.px:checkout:4.+ as no versions of com.mercadopago.android.px:checkout are available. Searched in the following locations:
I had the same problem, but I'm using this as dependency of the flutter mercadopago integration https://pub.dev/packages/mercado_pago_mobile_checkout
I'm not sure where to put this, so I'll go to reference both github proyects.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDevDebugAssets'.
> Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'.
> Could not resolve androidx.multidex:multidex:$multidex_version.
Required by:
project :app
> Could not resolve androidx.multidex:multidex:$multidex_version.
> Could not get resource 'https://jcenter.bintray.com/androidx/multidex/multidex/$multidex_version/multidex-$multidex_version.pom'.
> Could not GET 'https://jcenter.bintray.com/androidx/multidex/multidex/$multidex_version/multidex-$multidex_version.pom'. Received status code 502 from server: Bad Gateway
> Could not resolve com.mercadopago.android.px:checkout:4.46.+.
Required by:
project :app > project :mercado_pago_mobile_checkout
> Skipped due to earlier error
> Skipped due to earlier error
> Skipped due to earlier error
> Skipped due to earlier error
> Skipped due to earlier error
> Skipped due to earlier error
> Skipped due to earlier 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 48s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not download kotlin-compiler-embeddable-1.5.0.jar (org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.0)
> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.5.0/kotlin-compiler-embeddable-1.5.0.jar'.
> Premature end of Content-Length delimited message body (expected: 46,308,890; received: 6,193,120)
> Could not download gson-2.8.6.jar (com.google.code.gson:gson:2.8.6)
> Could not get resource 'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.6/gson-2.8.6.jar'.
> Could not GET 'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.6/gson-2.8.6.jar'. Received status code 502 from server: Bad Gateway
* 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 46s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Exception: Gradle task assembleDevDebug failed with exit code 1
Exited (sigterm)
estou com esse mesmo problema!
Hi, please make sure you have JCenter in your repositories list.