简体   繁体   English

如何在Android Studio中将库(Snapchat的非官方API)添加为依赖项?

[英]How to add as a dependency a library (unofficial API for Snapchat) in Android Studio?

Here is the link to this unofficial Java SnapChat client: https://github.com/hatboysam/JavaSnap 这是此非正式Java SnapChat客户端的链接: https : //github.com/hatboysam/JavaSnap

Can anyone suggest the steps to add the above library in Android Studio? 谁能建议在Android Studio中添加上述库的步骤?

It seems that the developer has discontinued the project 开发人员似乎已中止该项目

However to test for yourself, run this in the terminal: 但是要进行自我测试,请在终端中运行以下命令:

  1. git clone https://github.com/hatboysam/JavaSnap.git && mvn clean compile package git clone https://github.com/hatboysam/JavaSnap.git && mvn干净的编译包

  2. Then copy the generated JavaSnap-2.0-SNAPSHOT.jar file from the target folder and copy it into the folder in your app directory called lib . 然后从target文件夹中复制生成的JavaSnap-2.0-SNAPSHOT.jar文件,并将其复制到您的应用程序目录中名为lib的文件夹中。 Try rebuilding the project and you should be good to go. 尝试重建该项目,您应该一切顺利。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM