在引入一个model时,model中有如此配置:

apply plugin: 'com.github.dcendents.android-maven'

apply plugin: 'com.jfrog.bintray'

报错的地方也就是它了,此时需要在project中的gradle中加入以下配置:

classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'

classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'

如下:

    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.1'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }

 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐