Skip to content Skip to sidebar Skip to footer

Not Able To Compile Exoplayer In Android Studio

I have imported exoplayer using jcenter but am getting error as : Error:(46, 13) Failed to resolve: com.google.android.exoplayer:exoplayer:r2.3.0 Following is my code of gradles:

Solution 1:

Change exo player dependencies to 1.5.2 and then go to File->Invalidate cache /restart

dependencies
{
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
compile'com.android.support:appcompat-v7:25.3.0'compile'com.android.support:design:25.3.0'compile'com.android.support:recyclerview-v7:23.3.+'compile'com.android.support:cardview-v7:23.3.+'
testCompile 'junit:junit:4.12'compile'com.github.bumptech.glide:glide:3.7.0'compile'com.squareup.picasso:picasso:2.5.2'
/** *************For player ***************/
compile'com.android.support:support-v4:21.0.3'compile'com.nineoldandroids:library:2.4.0'compile'com.daimajia.slider:library:1.1.5@aar'compile'com.google.android.exoplayer:exoplayer:r1.5.2'
}

Solution 2:

you don't have to go back in versions, you can use the last release version: as in this link [1]https://github.com/google/ExoPlayer/releases just try to do invalidate and restart your project

Post a Comment for "Not Able To Compile Exoplayer In Android Studio"