No longer able to use bundleReleaseAar in MavenPublication

前端 未结 3 915
暖寄归人
暖寄归人 2021-01-11 22:44

After upgrading Gradle to 5.1.1, I found that I\'m unable to add bundleReleaseAar as an artifact to my MavenPublication. Here\'s the relevant snippet of my buil

3条回答
  •  感情败类
    2021-01-11 23:47

    I fix this problem change artifact from:

    artifact bundleReleaseAar
    

    to:

    artifact("$buildDir/outputs/aar/${project.getName()}-release.aar")
    

    this help me Gradle sync success, but i must call assembleRelease directly, before ./gradlew publish

提交回复
热议问题