3

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

halfer
  • 19,824
  • 17
  • 99
  • 186
Saty
  • 2,563
  • 3
  • 37
  • 88

1 Answers1

8

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. E.g., 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')
}
Avior
  • 481
  • 6
  • 18
ban-geoengineering
  • 18,324
  • 27
  • 171
  • 253
  • Hi I did the steps above but it did not work RtspClient, Session, SurfaceView or marked as red – utdev Jul 17 '17 at 08:54
  • You need to add libstreaming as module dependency as well. Project Structures -> Dependencies -> select your module (mine is app, your might be the same) -> click + -> Module dependency -> select libstreaming – Banana droid Sep 22 '19 at 18:01
  • is this library still applicable for the latest android version support? – gumuruh May 02 '20 at 09:39