无法解决:com.google.android.exoplayer:extension-mediasession:2.8.4

时间:2018-12-11 06:04:31

标签: android github build.gradle

我只是从git中提取NEWPIPE并加载到我的Android Studio中 并停留在这两个依赖关系上。 我添加了gradle文件的依赖项。 我希望这将有助于发现错误。 还添加了

repositories {
    google()
    jcenter()}

在项目级别的build.gradle文件中

    dependencies {    
        implementation 'com.github.TeamNewPipe:NewPipeExtractor:32d316330c26'    
        implementation "com.android.support:appcompat-v7:${supportLibVersion}"
        implementation "com.android.support:support-v4:${supportLibVersion}"
        implementation "com.android.support:design:${supportLibVersion}"
        implementation "com.android.support:recyclerview-v7:${supportLibVersion}"
        implementation "com.android.support:preference-v14:${supportLibVersion}"
        implementation "com.android.support:cardview-v7:${supportLibVersion}"
        implementation 'com.android.support.constraint:constraint-layout:1.1.3'

        implementation 'ch.acra:acra:4.9.2' //4.11

        implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
        implementation 'de.hdodenhof:circleimageview:2.2.0'
        implementation 'com.github.nirhart:ParallaxScroll:dd53d1f9d1'
        implementation 'com.nononsenseapps:filepicker:4.2.1'

//Failed to resolve: com.google.android.exoplayer:extension-mediasession:2.8.4
//Failed to resolve: com.google.android.exoplayer:2.8.4


 implementation "com.google.android.exoplayer:exoplayer:${exoPlayerLibVersion}"
        implementation "com.google.android.exoplayer:extension-mediasession:${exoPlayerLibVersion}"

        debugImplementation "com.facebook.stetho:stetho:${stethoLibVersion}"
        debugImplementation "com.facebook.stetho:stetho-urlconnection:${stethoLibVersion}"
        debugImplementation 'com.android.support:multidex:1.0.3'

        implementation 'io.reactivex.rxjava2:rxjava:2.2.2'
        implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
        implementation 'com.jakewharton.rxbinding2:rxbinding:2.1.1'

        implementation "android.arch.persistence.room:runtime:${roomDbLibVersion}"
        implementation "android.arch.persistence.room:rxjava2:${roomDbLibVersion}"
        annotationProcessor "android.arch.persistence.room:compiler:${roomDbLibVersion}"

        implementation "frankiesardo:icepick:${icepickLibVersion}"
        annotationProcessor "frankiesardo:icepick-processor:${icepickLibVersion}"

        debugImplementation "com.squareup.leakcanary:leakcanary-android:${leakCanaryLibVersion}"
        releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${leakCanaryLibVersion}"

        implementation "com.squareup.okhttp3:okhttp:${okHttpLibVersion}"
        debugImplementation "com.facebook.stetho:stetho-okhttp3:${stethoLibVersion}"
    }

谁能帮我解决这个问题

1 个答案:

答案 0 :(得分:3)

面临同样的问题。通过在url 'https://google.bintray.com/exoplayer/'部分中的项目级别将allprojects添加到buld.gradle来解决。

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

}