GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
MIT License
4.13k
stars
341
forks
source link
PublishBundle$Processor fails with SunCertPathBuilderException #1120
Additional context (if a crash, provide stack trace)
> Task :app:publishReleaseBundle FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:publishReleaseBundle'.
> A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishBundle$Processor
> There was a failure while executing work items
> A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishBundle$BundleUploader
> Error getting subject token from metadata server: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Doing curl --head -v https://androidpublisher.googleapis.com/androidpublisher/v3/applications/<myapp>/ works fine, so must be a Java cert chain issue. Using ACT locally works as well.
This issue has been automatically marked as stale because it has not had recent
activity. It will be closed if no further activity occurs. Thank you for your
contributions.
Describe the bug
Github action is unable to connect to playstore
unable to find valid certification path to requested target
.Tried with different java versions.
How To Reproduce
Versions
Tasks executed
What tasks did you run? For example,
publishBundle
.:app:publishReleaseBundle
Expected behavior
Builds locally (
macOS 13.5.2 [22G91]
,openjdk version "18.0.1.1" 2022-04-22
) on but running on Github actions fails.Tested both:
and
Additional context (if a crash, provide stack trace)
Workflow:
Doing
curl --head -v https://androidpublisher.googleapis.com/androidpublisher/v3/applications/<myapp>/
works fine, so must be a Java cert chain issue. Using ACT locally works as well.