GROUP for class: org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer

as 导入开源项目后,同步gradle报如下错误:


17:26:25 Gradle sync started

17:26:28 Gradle sync failed: No such property: GROUP for class: org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer

         Consult IDE log for more details (Help | Show Log)


在导入的模块的build.gradle中将下面这行代码注释掉即可

//apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'

亲测有效


参考:

http://stackoverflow.com/questions/28450549/errorno-such-property-group-for-class-org-gradle-api-publication-maven-intern


你可能感兴趣的:(android,bug,Studio)