简体   繁体   English

如何在Android Studio中导入libstreaming?

[英]How to import libstreaming in Android Studio?

I am a old developer with Eclipse IDE now I switched to Android Studio. 我是Eclipse IDE的老开发人员,现在我改用Android Studio。 I want to use the below tutorial 我想使用以下教程

Live Stream Library 直播流库

I want to import the libstreaming library to Android Studio. 我想将libstreaming库导入Android Studio。

libstreaming libstreaming

With the help of Fritte's comment on this page , I did the following to import libstreaming into my Android Studio (v1.5.1) project: Fritte在此页面上的评论的帮助下,我执行了以下操作将libstreaming导入我的Android Studio(v1.5.1)项目:

  • Create a new Android Project 创建一个新的Android项目
  • Clone libstreaming into an other directory 克隆libstreaming到另一个目录
  • In your new Android Project, File > New > Import Module > Path to libstreaming 在新的Android项目中, Path to libstreaming文件”>“新建”>“导入模块”>“ Path to libstreaming

You can then add libstreaming as a dependency in your app by adding compile project(':libstreaming') to the dependencies section of your build.gradle (Module:app) file. 然后,您可以通过在build.gradle(Module:app)文件的依赖项部分添加compile project(':libstreaming') ,将libstreaming作为依赖项添加到您的应用程序中。 Eg, mine now looks like this: 例如,我的现在看起来像这样:

dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.1' compile project(':libstreaming') }

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

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