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
bundleReleaseAar
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
./gradlew publish