Estoy tratando de integrar MercadoPago a mi app pero siempre sucede lo mismo:
Failed to resolve: com.mercadopago.android.px:checkout:4.86.0
Error mostrado:
Failed to resolve: com.mercadopago.android.px:checkout:4.86.0
Build.gradle:
implementation 'com.mercadopago.android.px:checkout:4.86.0'
¿Alguien sabe que hago mal?
Actualización:
El minSDK
que utilizo es el 26.
android {
compileSdkVersion 30
defaultConfig {
applicationId "com.frabasoft.mitaller"
minSdkVersion 26
targetSdkVersion 30
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildFeatures {
viewBinding true
}
}
El build.gradle:
buildscript {
repositories {
google()
mavenCentral()
maven{
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io'}
}
}