huawei-appgallery-publish-gradle-plugin: Bug: Can't publish apk
I just tried the release 1.3.0 and the sample project here…
./gradlew assembleDemoRelease
./gradlew publishHuaweiAppGalleryDemoRelease
Build file /Users/julio.buenocotta/git/huawei-publish-gradle-plugin/sample-groovy/build/outputs/apk/demo/release has wrong file extension that doesn’t match with announced buildFormat(APK) plugin extension param.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (15 by maintainers)
Commits related to this issue
- #33: Fix publishing apk files for 7.+ AGP — committed to cianru/huawei-appgallery-publish-gradle-plugin by cosic 3 years ago
- #33 Try ti find all apk files into build directory — committed to cianru/huawei-appgallery-publish-gradle-plugin by cosic 3 years ago
- #33 execute publish task after assemble and bundle tasks — committed to cianru/huawei-appgallery-publish-gradle-plugin by cosic 2 years ago
we tested in our CI with the command
./gradlew clean assembleVeepeeAllRelease :app:publishHuaweiAppGalleryVeepeeAllReleaseand got this error
Any ideas ?
For the first issue… have you tried this workaround https://github.com/gradle/gradle/issues/16777#issuecomment-817303964 ? It is odd, someone commented that is was fixed in gradle 7.1.1… and ktlint was able to workaround it as well… maybe looking at the code or their changelog would help ?
I found a couple issues which blocked me https://github.com/gradle/gradle/issues/16777 and https://github.com/gradle/gradle/issues/16775. I’m trying to figure it out.
@BugsBunnyBR Hi! Yes, I’m here. I’m going to figure out it next weekend.