No service of type Factory available in ProjectScopeServices

Fang
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) {
    from 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'
    from 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 this to upload the code to bintray will lead the error: No service of type Factory available in ProjectScopeServices. if i use gradle 2.10 will run ok, but in the 2.14.1(AS 2.2 preview 7 need 2.14.1)will come this error!

Celal Selcan

Change maven gradle plugin version to 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'
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

angular factory not available

From Dev

Inject form factory into a service

From Java

AngularJS : Factory and Service?

From Dev

Angular, use a service or factory?

From Dev

Is this an AngularJS service masquerading as a factory?

From Dev

Calling service for factory in controller

From Dev

$rootScope.$on in a service or factory

From Dev

Injecting service/factory to directive

From Dev

Injecting factory into service fails

From Dev

Angular, use a service or factory?

From Dev

Factory Service is always undefined

From Dev

org.springframework.beans.factory.UnsatisfiedDependencyException , No qualifying bean of type [edu.sample.service.ItemService]

From Dev

making service available in ngRoute

From Dev

Printing service not available

From Dev

rest service not available in jboss

From Dev

Factory method with dependent type

From Dev

Scala factory with type classes

From Dev

Factory method with dependent type

From Dev

Make a factory JS variable available globally in AngularJS

From Dev

There is no available StoreManager of type "appengine".

From Dev

"No Manifest available for Type" error

From Dev

Is File type available in Nodejs?

From Java

Confused about Service vs Factory

From Dev

Factory pattern without service locator

From Dev

Initializing AngularJS service factory style

From Dev

Migrating Service reference to Channel Factory

From Dev

Service or Factory, and how to get there with $http

From Dev

need to store a service/factory as a value

From Dev

Passing configuration information to service factory