Skip to content Skip to sidebar Skip to footer

Publications(s) Specified But No Publications Exist In Project :library

I am trying to upload my Library to JCenter Repository . I followed this tutorial : https://www.virag.si/2015/01/publishing-gradle-android-library-to-jcenter/ My build.gradle for

Solution 1:

I just encouter this problem, my solution is, edit the project top build.gradle, enable classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2", and disable //plugins { // id "com.jfrog.bintray" version "1.2" //}

It works for me, hope helpful for you.

Solution 2:

Your Top Level Build.gradle should contain this code in order to successfully build the gradle :

// Top-level build file where you can add configuration options common to all sub-projects/modules.


buildscript {
repositories {
    jcenter()
}

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

allprojects {

repositories {
    jcenter()
}
}

Post a Comment for "Publications(s) Specified But No Publications Exist In Project :library"