Reputation: 3441
I have a problem when trying to compile exoplayer r1.5.2 repository...
. There's no issue when I use com.google.android.exoplayer:exoplayer:r1.4.2
instead.
Here's of the compilation code:
And then this error is thrown:
Upvotes: 2
Views: 4634
Reputation: 1961
I had this issue as well: I added compile 'com.google.android.exoplayer:exoplayer:r1.5.2'
to my app/build.gradle
:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
compile 'com.google.android.exoplayer:exoplayer:r1.5.2'
}
And tried sync project
in Android Studio, but got the error above.
I got the dependency downloaded by upgrading to gradle 2.6 and invoking gradle from the shell:
$ ./gradlew build
Edit the distributionUrl
line in <project dir>/gradle/wrapper/gradle-wrapper.properties
:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-all.zip
Upvotes: 3