Android Studio导入别人的module提示错误Plugin with id 'com.jfrog.bintray' not found.

1 问题

Android Studio导入别人的module提示错误如下

Plugin with id 'com.jfrog.bintray' not found.
Plugin with id 'com.github.dcendents.android-maven' not found

 

 

 

2 解决办法

在我们的项目的build.gradle添加如下配置

buildscript {
    repositories {
        google()
        jcenter()
        
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.2'
        
        //添加下面2个
        //1.自动化maven打包插件
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
        //2.自动上传至Bintray平台插件
        classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0"
    }
}
发布了1051 篇原创文章 · 获赞 638 · 访问量 291万+

猜你喜欢

转载自blog.csdn.net/u011068702/article/details/104432948