libstreaming icon indicating copy to clipboard operation
libstreaming copied to clipboard

Importing the library in Android studio

Open satyamub opened this issue 10 years ago • 11 comments

I have been following a tutorial which shows how to import the libstreaming library in eclipse. Could you please let me know the way to import the library in Android studio?

satyamub avatar Nov 05 '15 11:11 satyamub

To import the library to Android Studio you can try this:

  • Open your project in Android Studio
  • Download the library (using Git, or a zip archive to unzip)
  • Copy and paste the libstreaming folder to your project's folder
  • On the root of your project directory create/modify the settings.gradle file. It should contain something like the following:
   include 'app', ':libstreaming'
  • Gradle clean & build/close the project and reopen/re-import it.
  • Edit your project's build.gradle to add this in the "depencies" section:
     dependencies {
     //...
        compile project(':libstreaming')
     }

Then your Android view should look something like this:

Android Studio

serpro avatar Nov 05 '15 12:11 serpro

I am sorry to bother you...I did it already!!Thanks for helping.

satyamub avatar Nov 05 '15 12:11 satyamub

:+1: That's great.. I'm glad it's working for you now.

serpro avatar Nov 05 '15 12:11 serpro

Not working for me.

Error:A problem occurred configuring project ':app'.

Cannot evaluate module libstreaming : Configuration with name 'default' not found.

How did you do it?

ghost avatar Nov 24 '15 12:11 ghost

@kikepp10 try the solutions in this post: http://stackoverflow.com/questions/22547364/configuration-with-name-default-not-found-android-studio

serpro avatar Nov 25 '15 10:11 serpro

@kikepp10 I had the same problem as you under Android Studio 1.5.

I did the following to resolve the issue:

  • Create a new Android Project
  • Clone libstreaming into an other directory
  • In your new Android Project: File->New->Import Module-> Path to libstreaming Now you should see the project structure as shown in the screenshot and you can add libstreaming as a dependency to your app

Fritte avatar Dec 02 '15 11:12 Fritte

Seems like there is an easier way for doing this now: https://github.com/ar-android/libstreaming

shacharr avatar Dec 25 '17 22:12 shacharr

@shacharr how do we used this One Plz help

Programmerpk avatar Nov 03 '18 16:11 Programmerpk

This link has the solution.

manikandasankar avatar Nov 19 '18 10:11 manikandasankar

ok thnxx

On Mon, 19 Nov 2018 at 05:09, manikandasankar [email protected] wrote:

This link https://stackoverflow.com/questions/33539445/how-to-import-libstreaming-in-android-studio has the solution.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fyhertz/libstreaming/issues/153#issuecomment-439839485, or mute the thread https://github.com/notifications/unsubscribe-auth/ApU4VZMV-cezFd9kuFf8OX0Z2VPOkk-Dks5uwoNogaJpZM4Gch2k .

Programmerpk avatar Nov 19 '18 18:11 Programmerpk

@serpro Thanks. I'm way up to android studio 4.1.2 and you're suggestion of using the import was enough to point me in the right direction. Don't know why I forget about the import.
here are my steps.
1.download the https://github.com/fyhertz/libstreaming live streaming as a zip, in a clean directory. 2.open android studio 4.1.2 and import. this turned it into an android studio project 3.went back to my "app" in android studio and right clicked on the project "open module settings" 4 using the project structure "modules" I pressed the '+' sign and pointed to the libstreaming directory from step two. This created the view like in serpro's studio image and updated the gradle settings files.

dcarlson661 avatar Feb 09 '21 22:02 dcarlson661