如何将库导入android项目?

时间:2015-10-20 08:14:27

标签: java android github ffmpeg

我想将这个库导入我的android项目,但我不知道如何。

https://github.com/guardianproject/android-ffmpeg-java

5 个答案:

答案 0 :(得分:1)

按照以下步骤操作:

  1. 转到文件>项目结构(ctrl + alt + shift + s)

  2. 点击顶部绿色+按钮。 enter image description here

  3. 导入Eclipse edt项目>下一个>从桌面查找lib>下一个>完。 enter image description here enter image description here

  4. 单击项目结构中的应用程序并转到依赖项 enter image description here

  5. 单击+按钮并选择模块依赖项并选择您的lib 项目。 enter image description here enter image description here

答案 1 :(得分:1)

该项目不是Gradle库,也是在Android Studio中使用它的最简单方法 - 只需通过Eclipse导出project.tasks.withType(com.android.build.gradle.tasks.Dex) { additionalParameters=['--core-library'] // --core-library option needed for now, will fix it soon }

结果如下:

希望它对你有所帮助。

答案 2 :(得分:0)

我也想知道。

我得到了一个答案,遗憾的是没有解决我的案子,但它可能会帮助你: How to include a ZIP file from github to an existing android studio project?

答案 3 :(得分:0)

下载此lib,解压缩并选择之后: 文件>>新>>新模块

答案 4 :(得分:0)

enter image description here

点击,build.gradle。之后,依赖项{//添加库}。最后立即同步。

相关问题