我試圖使用blibioteca android-maps-extensions,因爲我需要在我的地圖上修復超過1000個標記。沒有這樣的屬性:sonatypeUserName類:org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer
新增項目依賴於我的項目:
compile project (':android-maps-extensions')
但是,當我更新的build.gradle出現以下錯誤:
沒有這樣的屬性:類sonatypeUserName: org.gradle。 api.publication.maven.internal.ant.DefaultGroovyMavenDeployer
用戶名和密碼看起來是不可信的RECT什麼的,這個代碼是在項目中,我無論怎樣的build.gradle庫的一部分:
...
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 '[email protected]'
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'
}
}
...
有什麼建議?
做了同樣的,但它仍然沒有工作:/ –
這對我工作! – devgrg
這應該是可以接受的答案。謝啦。 –