gpt4 book ai didi

android - 没有此类属性:类的nexusUsername:org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

转载 作者:行者123 更新时间:2023-12-03 06:32:14 25 4
gpt4 key购买 nike

我试图将gradle项目添加到Eclipse,但是此错误已损坏。

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()
}
}
如果有人有解决此问题的想法,我将不胜感激。

最佳答案

评论maven_push.gradle的第21至23行似乎可以解决问题

repository(url: sonatypeRepositoryUrl) {
authentication(userName: nexusUsername, password: nexusPassword)
}

快乐的编码:)

关于android - 没有此类属性:类的nexusUsername:org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26675444/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com