Add Google ExoPlayer to Android gradle build studio

If I have an Android application developed using Android Studio, is it possible to link the ExoPlayer library ( https://github.com/google/ExoPlayer ) directly from github using graddle?

It would be convenient not to manually load the library and copy it into my project every time it is updated with the ExoPlayer command.

I tried adding this to build.gradle in my module.

 repositories { mavenCentral() maven { url 'https://raw.github.com/google/ExoPlayer' } } dependencies { compile 'com.google.android.exoplayer' } 

But I get a module name invalid error message ...

+5
source share
1 answer

Now you can add ExoPlayer as a jCenter dependency via gradle!

 repositories { mavenCentral() jcenter() } dependencies { ... compile 'com.google.android.exoplayer:exoplayer:r1.4.1' } 
+18
source

All Articles