android - No service of type Factory available in ProjectScopeServices -


apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray'  // load properties properties properties = new properties() file localpropertiesfile = project.file("local.properties"); if(localpropertiesfile.exists()){     properties.load(localpropertiesfile.newdatainputstream()) } file projectpropertiesfile = project.file("project.properties"); if(projectpropertiesfile.exists()){     properties.load(projectpropertiesfile.newdatainputstream()) }  //read properties def projectname = properties.getproperty("project.name") def projectgroupid = properties.getproperty("project.groupid") def projectartifactid = properties.getproperty("project.artifactid") def projectversionname = android.defaultconfig.versionname def projectpackaging = properties.getproperty("project.packaging") def projectsiteurl = properties.getproperty("project.siteurl") def projectgiturl = properties.getproperty("project.giturl")  def developerid = properties.getproperty("developer.id") def developername = properties.getproperty("developer.name") def developeremail = properties.getproperty("developer.email")  def bintrayuser = properties.getproperty("bintray.user") def bintrayapikey = properties.getproperty("bintray.apikey")  def javadocname = properties.getproperty("javadoc.name")  group = projectgroupid  install {     repositories.maveninstaller {         pom {             project {                 name projectname                 groupid projectgroupid                 artifactid projectartifactid                 version projectversionname                 packaging projectpackaging                 url projectsiteurl                 licenses {                     license {                         name 'the apache software license, version 2.0'                         url 'http://www.apache.org/licenses/license-2.0.txt'                     }                 }                 developers {                     developer {                         id developerid                         name developername                         email developeremail                     }                 }                 scm {                     connection projectgiturl                     developerconnection projectgiturl                     url projectsiteurl                 }             }         }     } }  task sourcesjar(type: jar) {     android.sourcesets.main.java.srcdirs     classifier = 'sources' }  task javadoc(type: javadoc) {     source = android.sourcesets.main.java.srcdirs     classpath += project.files(android.getbootclasspath().join(file.pathseparator)) }  task javadocjar(type: jar, dependson: javadoc) {     classifier = 'javadoc'     javadoc.destinationdir }  artifacts {     archives javadocjar     archives sourcesjar }  javadoc {     failonerror false      options{         encoding 'utf-8'         charset 'utf-8'         author true         version projectversionname         links "http://docs.oracle.com/javase/7/docs/api"         title javadocname     } }  bintray {     user = bintrayuser     key = bintrayapikey     configurations = ['archives']     pkg {         repo = "maven"         name = projectname         websiteurl = projectsiteurl         vcsurl = projectgiturl         licenses = ["apache-2.0"]         publish = true     } } 

use upload code bintray lead error: no service of type factory available in projectscopeservices. if use gradle 2.10 run ok, in 2.14.1(as 2.2 preview 7 need 2.14.1)will come error!

change maven gradle plugin version 1.4.1 in project build.gradle file

dependencies {     classpath 'com.android.tools.build:gradle:2.2.2'     classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1' } 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -