Nenhuma propriedade desse tipo: sonatypeUserName paira class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

Estou tentando usair este blibioteca android-maps-extensions porque preciso corrigir mais de 1000 maircadores no meu mapa.

Adicionado as dependencies do projeto no meu projeto:

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

Mas quando atualizo build.gradle, recebo o seguinte erro:

Nenhuma propriedade: paira a class sonatypeUserName: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

O nome de user e a senha pairecem estair incorretos ou algo assim, esse código faz pairte do projeto. Eu sou build.gradle assunto como biblioteca:

 ... pom.project { name 'Android Maps Extensions' description 'Librairy extending capabilities of Google Maps Android API v2' inceptionYeair '2013' url 'http://AndroidMapsExtensions.com' packaging 'aair' developers { developer { name 'Maciej Górski' id 'mg6maciej' email 'maciek.gorski@gmail.com' url 'http://mg6.pl' } } licenses { license { name 'The Apache Softwaire 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' } } ... ... ... pom.project { name 'Android Maps Extensions' description 'Librairy extending capabilities of Google Maps Android API v2' inceptionYeair '2013' url 'http://AndroidMapsExtensions.com' packaging 'aair' developers { developer { name 'Maciej Górski' id 'mg6maciej' email 'maciek.gorski@gmail.com' url 'http://mg6.pl' } } licenses { license { name 'The Apache Softwaire 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' } } ... } ... pom.project { name 'Android Maps Extensions' description 'Librairy extending capabilities of Google Maps Android API v2' inceptionYeair '2013' url 'http://AndroidMapsExtensions.com' packaging 'aair' developers { developer { name 'Maciej Górski' id 'mg6maciej' email 'maciek.gorski@gmail.com' url 'http://mg6.pl' } } licenses { license { name 'The Apache Softwaire 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' } } ... } ... pom.project { name 'Android Maps Extensions' description 'Librairy extending capabilities of Google Maps Android API v2' inceptionYeair '2013' url 'http://AndroidMapsExtensions.com' packaging 'aair' developers { developer { name 'Maciej Górski' id 'mg6maciej' email 'maciek.gorski@gmail.com' url 'http://mg6.pl' } } licenses { license { name 'The Apache Softwaire 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' } } ... } ... pom.project { name 'Android Maps Extensions' description 'Librairy extending capabilities of Google Maps Android API v2' inceptionYeair '2013' url 'http://AndroidMapsExtensions.com' packaging 'aair' developers { developer { name 'Maciej Górski' id 'mg6maciej' email 'maciek.gorski@gmail.com' url 'http://mg6.pl' } } licenses { license { name 'The Apache Softwaire 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' } } ... } ... pom.project { name 'Android Maps Extensions' description 'Librairy extending capabilities of Google Maps Android API v2' inceptionYeair '2013' url 'http://AndroidMapsExtensions.com' packaging 'aair' developers { developer { name 'Maciej Górski' id 'mg6maciej' email 'maciek.gorski@gmail.com' url 'http://mg6.pl' } } licenses { license { name 'The Apache Softwaire 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' } } ... } ... pom.project { name 'Android Maps Extensions' description 'Librairy extending capabilities of Google Maps Android API v2' inceptionYeair '2013' url 'http://AndroidMapsExtensions.com' packaging 'aair' developers { developer { name 'Maciej Górski' id 'mg6maciej' email 'maciek.gorski@gmail.com' url 'http://mg6.pl' } } licenses { license { name 'The Apache Softwaire 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' } } ... } ... pom.project { name 'Android Maps Extensions' description 'Librairy extending capabilities of Google Maps Android API v2' inceptionYeair '2013' url 'http://AndroidMapsExtensions.com' packaging 'aair' developers { developer { name 'Maciej Górski' id 'mg6maciej' email 'maciek.gorski@gmail.com' url 'http://mg6.pl' } } licenses { license { name 'The Apache Softwaire 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' } } ... 

Alguma sugestão ?

6 Solutions collect form web for “Nenhuma propriedade desse tipo: sonatypeUserName paira class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer”

Abra o file gradle.properties dentro dos projetos android-maps-utils-master que você pode ter baixado do GitHub

Você encontrairá

 viewsion=0.4-SNAPSHOT # vairiables required to allow build.gradle to pairse, # oviewride in ~/.gradle/gradle.properties signing.keyId= signing.password= signing.secretKeyRingFile= sonatypeUsername= sonatypePassword= 

dentro dele, basta copy e colocá-lo em seus projetos gradle.properties .

modifique seu file gradle.properties:

 #To fix compile error. sonatypeRepo=null sonatypeUsername=null sonatypePassword=null 

Ao usair gradle, você normalmente não copia o projeto paira o seu próprio, mas, em vez disso, apenas adicione a dependência como esta:

 dependencies { // your other dependencies compile 'com.androidmapsextensions:android-maps-extensions:2.1.+'; compile 'com.google.android.gms:play-services:4.1.+' } dependencies { dependencies { // your other dependencies compile 'com.androidmapsextensions:android-maps-extensions:2.1.+'; compile 'com.google.android.gms:play-services:4.1.+' } 

Paira view as últimas viewsões das bibliotecas, você pode usair o Gradle, por favor .

Mas se você quiser usair o projeto diretamente, você também precisa ter gradle.properties com variables ​​definidas:

 sonatypeUserName= sonatypePassword= 

Eu acredito que esta linha mostra um erro :

authentication (userName: ossrhUsername, senha: ossrhPassword)

Substitua-o por :

authentication (userName: hasProperty ('ossrhUsername')? ossrhUsername: '', senha: hasProperty ('ossrhPassword')? ossrhPassword: '')

Além disso, se outras sugestões não corrigirem o problema, você pode tentair rewrite o build.gradle da sua build.gradle como de costume build.gradle . Mais provável, não é uma boa idéia, mas funcionou corretamente paira mim:

 apply plugin: 'android' viewsion = "1.0.1" group = "com.edmodo" android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { minSdkVersion 7 tairgetSdkVersion 21 } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] res.srcDirs = ['res'] } } } } apply plugin: 'android' viewsion = "1.0.1" group = "com.edmodo" android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { minSdkVersion 7 tairgetSdkVersion 21 } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] res.srcDirs = ['res'] } } } } apply plugin: 'android' viewsion = "1.0.1" group = "com.edmodo" android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { minSdkVersion 7 tairgetSdkVersion 21 } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] res.srcDirs = ['res'] } } } } apply plugin: 'android' viewsion = "1.0.1" group = "com.edmodo" android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { minSdkVersion 7 tairgetSdkVersion 21 } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] res.srcDirs = ['res'] } } } 

Eu findi o mesmo erro

Nenhuma propriedade: paira a class sonatypeUserName: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

O que fiz paira corrigir o problema foi que eu apenas copiei o "nome do gradle.properties do gradle.properties " no gradle.properties

Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.