当我们添加依赖项时出现错误无法解析com.paytm:pgplussdk:1.2.3

时间:2019-01-08 06:41:14

标签: android

当我们使用添加依赖项集成paytm SDK时

id

出现错误

  

[无法解决以下项的依赖性   ':app @ debugAndroidTest / compileClasspath':无法解析   com.paytm:pgplussdk:1.2.3。 ]

找不到任何解决方案,有任何想法请与我分享。 我的代码正确与

同步
implementation('com.paytm:pgplussdk:1.2.3') 

{  transitive = true; }

差异为1.1.2 0r 1.2.3

1 个答案:

答案 0 :(得分:0)

在您的应用程序级别gradle依赖项中添加以下依赖项

classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'

并将其添加到模块级gradle文件

//using 1.2.9 as it is the latest version mentioned.
compile('com.paytm:pgplussdk:1.2.9') {
    transitive = true;
}

您可以从其github页面here中查看更多信息。