Android Studio之提示Gradle sync failed: Plugin with id ‘com.novoda.bintray-release‘ not found.

1 问题

导入别人的模块到Android Studio,错误提示如下

Gradle sync failed: Plugin with id 'com.novoda.bintray-release' not found.

2 解决办法

在project的build.gradle里面添加如下

    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.2'
        //加上下面的代码
        classpath 'com.novoda:bintray-release:0.3.4'
    }

再次进行Rebuild Project,提示错误如下

Gradle sync failed: org.gradle.api.internal.component.Usage (1 s 701 ms)

解决办法,把com.novoda版本提高如下

    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.2'
//        classpath 'com.novoda:bintray-release:0.3.4'
        classpath 'com.novoda:bintray-release:0.5.0'
   }
(0)

相关推荐