美文网首页
Error:Could not get unknown prop

Error:Could not get unknown prop

作者: 塑料机霸 | 来源:发表于2017-12-11 20:36 被阅读63次

    release.gradle找到

    def getRepositoryUrl() {
        return hasProperty('repositoryUrl') ? property('repositoryUrl') : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
    }
    
    def getRepositoryUsername() {
        return hasProperty('repositoryUsername') ? property('repositoryUsername') : ''
    }
    
    def getRepositoryPassword() {
        return hasProperty('repositoryPassword') ? property('repositoryPassword') : ''
    }
    

    替换为:

    def getRepositoryUrl() {
        return findProperty('repositoryUrl') != null ? property('repositoryUrl') : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
    }
    
    def getRepositoryUsername() {
        return findProperty('repositoryUsername') !=null ? property('repositoryUsername') : ''
    }
    
    def getRepositoryPassword() {
        return findProperty('repositoryPassword') != null ? property('repositoryPassword') : ''
    }
    
    

    相关文章

      网友评论

          本文标题:Error:Could not get unknown prop

          本文链接:https://www.haomeiwen.com/subject/nyewixtx.html