简体   繁体   中英

How to import libstreaming in Android Studio?

I am a old developer with Eclipse IDE now I switched to Android Studio. I want to use the below tutorial

Live Stream Library

I want to import the libstreaming library to Android Studio.

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:

  • Create a new Android Project
  • Clone libstreaming into an other directory
  • In your new Android Project, File > New > Import Module > 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. 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') }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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