没有这样的属性:sonatypeUserName类:org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer [英] No such property: sonatypeUserName for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

查看:596
本文介绍了没有这样的属性:sonatypeUserName类:org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想是因为我需要解决超过1000个使用此blibioteca Android的地图,扩展程序标记在我的地图。

I'm trying to use this blibioteca android-maps-extensions because I need to fix more than 1000 markers on my map .

补充项目依赖于我的项目:

Added the project dependencies in my project :

compile project (':android-maps-extensions')

但是,当我更新build.gradle出现以下错误:

But when I update build.gradle get the following error :

没有这样的属性:类sonatypeUserName:   org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

No such property : for class sonatypeUserName : org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

用户名和密码似乎不正确或东西,这code是我build.gradle项目的一部分,无论怎样库:

The username and password appear to be incorrect or something , this code is part of the project I'm build.gradle matter how library:

...

pom.project {
    name 'Android Maps Extensions'
    description 'Library extending capabilities of Google Maps Android API v2'
    inceptionYear '2013'
    url 'http://AndroidMapsExtensions.com'
    packaging 'aar'

    developers {
        developer {
            name 'Maciej Górski'
            id 'mg6maciej'
            email 'maciek.gorski@gmail.com'
            url 'http://mg6.pl'
        }
    }

    licenses {
        license {
            name 'The Apache Software License, Version 2.0'
            url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
            distribution 'repo'
       }
    }

    scm {
        url 'https://github.com/mg6maciej/android-maps-extensions'
        connection 'scm:git:https://github.com/mg6maciej/android-maps-extensions.git'
        developerConnection 'scm:git:https://github.com/mg6maciej/android-maps-extensions.git'
        }
    }

...

有什么建议?

推荐答案

打开 gradle.properties 文件的项目里面 Android的地图-utils的-master ,你可能已经从 GitHub上

Open the gradle.properties file inside the projects android-maps-utils-master that you may have downloaded from GitHub

您会发现

version=0.4-SNAPSHOT

# variables required to allow build.gradle to parse,
# override in ~/.gradle/gradle.properties
signing.keyId=
signing.password=
signing.secretKeyRingFile=

sonatypeUsername=
sonatypePassword=

里面,只需复制并把它放在你的项目 gradle.properties

这篇关于没有这样的属性:sonatypeUserName类:org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆