yoomoney / yookassa-android-sdk

This library allows implementing payment acceptance into mobile apps on Android. It works as an extension to the YooMoney API.
https://yookassa.ru/developers/payment-forms/android-sdk
MIT License
40 stars 22 forks source link

Could not find method implementation() for arguments [ru.yoomoney.sdk.kassa.payments:yookassa-android-sdk:6.4.4] #95

Closed kardenvan7 closed 2 years ago

kardenvan7 commented 3 years ago

Trying to add this dependency to my project but when compiling the app this error message pops up

What went wrong: A problem occurred evaluating root project 'android'. Could not find method implementation() for arguments [ru.yoomoney.sdk.kassa.payments:yookassa-android-sdk:6.4.4] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

My android\build.gradle

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
    }

    dependencies {
        implementation 'ru.yoomoney.sdk.kassa.payments:yookassa-android-sdk:6.4.4'
        implementation fileTree(dir: "libs", include: ["*.aar"])
    }
}

Have directory "libs" near build.gradle with ThreatMetrix-Android-SDK-6.2.97.aar. Even tried it like README.md said, instead of version number (6.4.4) wrote "$versionName". Same error.