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

Most upvoted comments

we tested in our CI with the command ./gradlew clean assembleVeepeeAllRelease :app:publishHuaweiAppGalleryVeepeeAllRelease

and got this error

Execution failed for task ':app:publishHuaweiAppGalleryVeepeeAllRelease'.
> java.io.FileNotFoundException: null (No such file or directory). Application build file is not found. Please run `assemble` or `bundle` task to build the application file before current task.

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.