首页 > 代码库 > gradle 编译 No such property: sonatypeUsername错误解决

gradle 编译 No such property: sonatypeUsername错误解决

No such property: sonatypeUsername for class: org.gradle.api.publication.maven.internal.ant.DefaultG

 

在项目根目录创建名为gradle.properties的属性文件,在文件中输入下面的内容:

sonatypeUsername=
sonatypePassword=
sonatypeRepo=

gradle 编译 No such property: sonatypeUsername错误解决