java如何在Android项目中添加SDK模块
我试图在我的Android应用程序中实现一个支付处理器,它在中东工作,它是SDK模块,但没有太大的成功。到目前为止,他们的客户支持还没有起到帮助作用这些是它们提供的步骤。但是,在步骤1中,我不确定在libs目录中的何处克隆它?那么在第二步中,我们不清楚该怎么做?我应该写include :library', ':app'
还是include ':goSellSDK-Android', ':app'
。在第3步中,无论我在第2步中尝试了什么,他们的模块都不会显示在列表中
如果我试图通过“从源代码导入模块”添加模块,它将添加示例,而不是库。我觉得我错过了什么,非常感谢你的帮助
step 1 - Clone goSellSDK library from Tap repository git@github.com:Tap-Payments/goSellSDK-Android.git
step 2 - Add goSellSDK library to your project settings.gradle file as following include ':library', ':YourAppName'
step 3 - Setup your project to include goSellSDK as a dependency Module.
- File -> Project Structure -> Modules -> << your project name >>
- Dependencies -> click on + icon in the screen bottom -> add Module
- Dependency select goSellSDK library
# 1 楼答案
试着跟着installation guide using jitpack
在存储库末尾的根
build.gradle
中添加JitPack:将依赖项添加到模块的
build.gradle
文件(可能是应用程序模块)告诉我进展如何