Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Compiling gStreamer into Android Studio for use in Apps

So I have been tasked with another Android App this one is a video chat client, something like Skype™. Our PC client uses gStreamer which can be found here

I've searched high-and-low and followed every tutorial I could thing of for getting the latest version of gStreamer compired and included in Android Studio, so that I can build this app and make calls to gStreamer when needed. So far no luck, maybe I am just not understanding the tutorials or maybe this is something different completely. I had hoped this would be as easy as adding a "compile 'com.example.gstreamer-v1.6.0' " in gradle.

Any help on the situation is greatly appreciated.

1 Answer

I have not done this with gradle yet, or used gStreamer but most or all java libraries are a set of .jar files. For previous projects I would copy the required files to a lib or libs directory in your source code folders, I would lookup exact path relative to the project root before attempting this.

Then you add this to gradle

compile files('libs/<name of gstreamer library file>.jar')

This was the standard way of doing things before the IDE had the ability to download various libraries by a 1 line command in a file.