Failed to apply plugin Android Studio

前端 未结 1 1676
一向
一向 2021-01-17 09:52

I am trying to import ExoPlayer library into my Android Studio project. I have tryed few times with several methods ( importing direct with GRADLE ), import as module, copy

相关标签:
1条回答
  • 2021-01-17 10:01

    It looks like gradle could not find this plugin in all specified repositories. ExoPlayer specifies buildscript repositories in the root project, so that's what you should do too.

    In your root build.gradle make sure buildscript section contains jcenter() repository and 'andcom.novoda:bintray-release:0.2.7' classpath:

    buildscript {
        repositories {
            ...... <- whatever you have now
            jcenter() <- make sure this one is there
        }
        dependencies {
            ...... <- whaterver you have now
            classpath 'com.novoda:bintray-release:0.2.7' <- make sure this one is there
        }
    }
    
    0 讨论(0)
提交回复
热议问题