px-android icon indicating copy to clipboard operation
px-android copied to clipboard

it is not possible to import the library into the project

Open gsleonel opened this issue 3 years ago • 3 comments

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:

gsleonel avatar Dec 07 '21 18:12 gsleonel

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)

EduardoHidalgo avatar Jan 12 '22 17:01 EduardoHidalgo

estou com esse mesmo problema!

Damiao-Dandevs avatar Jan 29 '22 01:01 Damiao-Dandevs

Hi, please make sure you have JCenter in your repositories list.

guchito9 avatar Feb 23 '22 21:02 guchito9