Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to apply plugin Android Studio

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 paste it, I get the same error:

Error:(15) A problem occurred evaluating project ':..:ExoPlayer:library'.
> Failed to apply plugin [id 'bintray-release']
   > Plugin with id 'bintray-release' not found.

In library gradle I found the apply plugin line:

apply plugin: 'bintray-release'

After Searching the library and apply it to dependencies I still got the error:

dependencies {
    compile 'com.novoda:bintray-release:0.2.10'
}

Any Ideea how can I solve this problem ?

like image 304
Marian Pavel Avatar asked Apr 21 '15 15:04

Marian Pavel


1 Answers

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
    }
}
like image 111
Pavel Dudka Avatar answered Sep 19 '22 12:09

Pavel Dudka