Failed to integrate dependency for payment gateway, error "Failed to Resolve: com.github"

1

It's my first app after my studies, I try to make an app for homes, it's all done except the final step, integrate payment gateway (epayco) have their SDK . I download and install the dependencies as they say, but it throws the error in the image ] 3

I appreciate your help, as I told you it is my first project so I do not know how to install it completely and start receiving payments so if someone who knows how to integrate this SDK into my project.

    
asked by yefri garcia 22.03.2018 в 17:57
source

1 answer

0

To obtain dependencies of a github library you must add the declaration in the file build.gradle of the project:

maven { url "https://jitpack.io" }

in repositories of allprojects

allprojects {
    repositories {
        google()
        jcenter()

        maven { url "https://jitpack.io" }
    }
}

...

It is important to correctly define the version, which should be 1.01:

 compile 'com.github.epayco:epayco-android:1.01'

until today (March 2018) there are only versions 1.0 and 1.01:

link

If the version does not exist in the repository, you will get the error:

  

Error :(,) Failed to resolve:

    
answered by 22.03.2018 / 18:31
source