Exoplayer: Failed to resolve: com.google.android.exoplayer:exoplayer-core:2.6.0

Created on 10 Dec 2018  路  3Comments  路  Source: google/ExoPlayer

Hello. when i want to add this library to my project , these messages are shown:

Failed to resolve: com.google.android.exoplayer:exoplayer-core:2.6.0
Install Repository and sync project
Open File
Show in Project Structure dialog


Failed to resolve: com.google.android.exoplayer:exoplayer-dash:2.6.0
Install Repository and sync project
Open File
Show in Project Structure dialog

I use this line to add ExoPlayer to my project:

implementation 'com.google.android.exoplayer:exoplayer:2.6.0'

why these errors are shown? I am not able to sync my project. Thanks.

Most helpful comment

in build.gradle (project:projectname)
add this

allprojects {
repositories {
google()
jcenter()
maven {
url 'https://google.bintray.com/exoplayer/'
}
}
}

this solv my problem

All 3 comments

Duplicate of #5225
@kambizira Please check it there

in build.gradle (project:projectname)
add this

allprojects {
repositories {
google()
jcenter()
maven {
url 'https://google.bintray.com/exoplayer/'
}
}
}

this solv my problem

Duplicate of #5225

Was this page helpful?
0 / 5 - 0 ratings