我想向Eclipse添加gradle项目,但是这个错误已经发生了。没有这样的属性:类的nexusUsername:org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer
FAILURE: Build failed with an exception.
* Where:
Script '/Users/user/Downloads/AndroidSlidingUpPanel-master/maven_push.gradle' line: 22
* What went wrong:
A problem occurred configuring project ':demo'.
> A problem occurred configuring project ':library'.
> No such property: nexusUsername for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer
和的build.gradle
// Top-level build file where you can add configuration options common to all sub- projects/modules.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
}
}
def isReleaseBuild() {
return version.contains("SNAPSHOT") == false
}
allprojects {
version = VERSION_NAME
group = GROUP
repositories {
mavenCentral()
}
}
如果有人有任何想法解决这个问题,我将不胜感激。