Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot upload the bundle to the play store after update the plugin to 3.4.0-agp4.2 #954

Closed
piotradamczyk5 opened this issue May 19, 2021 · 18 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@piotradamczyk5
Copy link

piotradamczyk5 commented May 19, 2021

Describe the bug

After updating the plugin to 3.4.0-agp4.2(from 3.3.0) and Android Gradle Plugin 4.2.0 (from 4.1.2) upload failed with a message:

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:publish<APP VARIANT>ReleaseBundle'.
> 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
         > com.google.api.client.http.HttpTransport.isMtls()Z

Previously(before update) it worked without any problem

How To Reproduce

run
./gradlew publishBundle --no-parallel

Versions

  • Gradle Play Publisher: 3.4.0-agp4.2
  • Gradle Wrapper: 7.0
  • Android Gradle Plugin: 4.2.0

Tasks executed

./gradlew publishBundle --no-parallel

Expected behavior

The bundle is uploaded to play store

Additional context (if a crash, provide stack trace)

play config:

play {

    def resolution = com.github.triplet.gradle.androidpublisher.ResolutionStrategy.IGNORE

    serviceAccountCredentials.set(file("$googleApiKey"))

    track.set("internal")
    resolutionStrategy.set(resolution)
    defaultToAppBundles.set(true)
}

Stacktrace:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:publish<APP VARIAN>ReleaseBundle'.
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:187)
	at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:268)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:185)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:173)
	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109)
	at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
	at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76)
	at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:74)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:408)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:395)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:388)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:374)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishBundle$Processor
	at org.gradle.workers.internal.DefaultWorkerExecutor$WorkItemExecution.waitForCompletion(DefaultWorkerExecutor.java:342)
	at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForItemsAndGatherFailures(DefaultAsyncWorkTracker.java:142)
	at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForItemsAndGatherFailures(DefaultAsyncWorkTracker.java:94)
	at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForAll(DefaultAsyncWorkTracker.java:80)
	at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForCompletion(DefaultAsyncWorkTracker.java:68)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$2.run(ExecuteActionsTaskExecuter.java:506)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$run$1(DefaultBuildOperationExecutor.java:71)
	at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:71)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:483)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:466)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$300(ExecuteActionsTaskExecuter.java:105)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.executeWithPreviousOutputFiles(ExecuteActionsTaskExecuter.java:270)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:248)
	at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:83)
	at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:37)
	at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:50)
	at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:47)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76)
	at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76)
	at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:47)
	at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:37)
	at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:68)
	at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:38)
	at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:50)
	at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:36)
	at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)
	at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)
	at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
	at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:51)
	at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:29)
	at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:54)
	at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:35)
	at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:60)
	at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:27)
	at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:174)
	at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:74)
	at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:45)
	at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:40)
	at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:29)
	at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:36)
	at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:22)
	at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:99)
	at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:92)
	at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:52)
	at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36)
	at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:84)
	at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:41)
	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
	at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:91)
	at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:49)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:78)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:49)
	at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:105)
	at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:50)
	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda$execute$2(SkipEmptyWorkStep.java:86)
	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:86)
	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:32)
	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
	at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:43)
	at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:31)
	at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:40)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution$2.withWorkspace(ExecuteActionsTaskExecuter.java:283)
	at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:40)
	at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)
	at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37)
	at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27)
	at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:49)
	at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:35)
	at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:76)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:184)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:173)
	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109)
	at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
	at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76)
	at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:74)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:408)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:395)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:388)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:374)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: org.gradle.workers.WorkerExecutionException: There was a failure while executing work items
	at org.gradle.workers.internal.DefaultWorkerExecutor.workerExecutionException(DefaultWorkerExecutor.java:270)
	at org.gradle.workers.internal.DefaultWorkerExecutor.await(DefaultWorkerExecutor.java:252)
	at com.github.triplet.gradle.play.tasks.PublishBundle$Processor.upload(PublishBundle.kt:64)
	at com.github.triplet.gradle.play.tasks.internal.workers.PublishArtifactWorkerBase.execute(PublishArtifactWorkerBase.kt:15)
	at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
	at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:66)
	at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:62)
	at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:97)
	at org.gradle.workers.internal.NoIsolationWorkerFactory$1.lambda$execute$0(NoIsolationWorkerFactory.java:62)
	at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:44)
	at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:41)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76)
	at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76)
	at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41)
	at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:59)
	at org.gradle.workers.internal.DefaultWorkerExecutor.lambda$submitWork$2(DefaultWorkerExecutor.java:206)
	at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:214)
	at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:164)
	at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:131)
	... 3 more
Caused by: org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishBundle$BundleUploader
	at org.gradle.workers.internal.DefaultWorkerExecutor$WorkItemExecution.waitForCompletion(DefaultWorkerExecutor.java:342)
	at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForItemsAndGatherFailures(DefaultAsyncWorkTracker.java:142)
	at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForItemsAndGatherFailures(DefaultAsyncWorkTracker.java:90)
	at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForAll(DefaultAsyncWorkTracker.java:80)
	at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForCompletion(DefaultAsyncWorkTracker.java:68)
	at org.gradle.workers.internal.DefaultWorkerExecutor.await(DefaultWorkerExecutor.java:250)
	... 28 more
Caused by: java.lang.NoSuchMethodError: com.google.api.client.http.HttpTransport.isMtls()Z
	at com.google.api.services.androidpublisher.AndroidPublisher$Builder.chooseEndpoint(AndroidPublisher.java:10561)
	at com.google.api.services.androidpublisher.AndroidPublisher$Builder.<init>(AndroidPublisher.java:10594)
	at com.github.triplet.gradle.androidpublisher.internal.AndroidPublisherKt.createPublisher(AndroidPublisher.kt:28)
	at com.github.triplet.gradle.androidpublisher.internal.DefaultPlayPublisher$Factory.create(DefaultPlayPublisher.kt:236)
	at com.github.triplet.gradle.androidpublisher.PlayPublisher$Companion.invoke(PlayPublisher.kt:109)
	at com.github.triplet.gradle.play.tasks.internal.PlayApiService$publisher$2.invoke(PlayApiService.kt:25)
	at com.github.triplet.gradle.play.tasks.internal.PlayApiService$publisher$2.invoke(PlayApiService.kt:20)
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
	at com.github.triplet.gradle.play.tasks.internal.PlayApiService.getPublisher(PlayApiService.kt)
	at com.github.triplet.gradle.play.tasks.internal.PlayApiService.getOrCreateEditId(PlayApiService.kt:70)
	at com.github.triplet.gradle.play.tasks.internal.PlayApiService.access$getOrCreateEditId(PlayApiService.kt:20)
	at com.github.triplet.gradle.play.tasks.internal.PlayApiService$edits$2.invoke(PlayApiService.kt:29)
	at com.github.triplet.gradle.play.tasks.internal.PlayApiService$edits$2.invoke(PlayApiService.kt:20)
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
	at com.github.triplet.gradle.play.tasks.internal.PlayApiService.getEdits(PlayApiService.kt)
	at com.github.triplet.gradle.play.tasks.PublishBundle$BundleUploader.upload(PublishBundle.kt:95)
	... 27 more
@piotradamczyk5 piotradamczyk5 added the bug Indicates an unexpected problem or unintended behavior label May 19, 2021
@piotradamczyk5 piotradamczyk5 changed the title Cannot upload the bundle to store after update the plugin to 3.4.0-agp4.2 Cannot upload the bundle to the play store after update the plugin to 3.4.0-agp4.2 May 19, 2021
@SUPERCILEX
Copy link
Collaborator

That's frustrating, someone else had pretty much the same issue but I can't reproduce it: #941. Can you also run ./gradlew buildEnv app:buildEnv to see what dependencies you have?

@piotradamczyk5
Copy link
Author

piotradamczyk5 commented May 20, 2021

Sure thing. Here is the output:

classpath
\--- com.github.triplet.play:com.github.triplet.play.gradle.plugin:3.4.0-agp4.2
     \--- com.github.triplet.gradle:play-publisher:3.4.0-agp4.2
          +--- com.github.triplet.gradle:android-publisher:3.4.0-agp4.2
          |    +--- com.github.triplet.gradle:common-utils:3.4.0-agp4.2
          |    +--- com.google.apis:google-api-services-androidpublisher:v3-rev20201125-1.31.0
          |    |    \--- com.google.api-client:google-api-client:1.31.1 -> 1.31.3
          |    |         +--- com.google.oauth-client:google-oauth-client:1.31.4
          |    |         |    +--- com.google.http-client:google-http-client:1.38.0 -> 1.39.2
          |    |         |    |    +--- org.apache.httpcomponents:httpclient:4.5.13
          |    |         |    |    |    +--- org.apache.httpcomponents:httpcore:4.4.13 -> 4.4.14
          |    |         |    |    |    +--- commons-logging:commons-logging:1.2
          |    |         |    |    |    \--- commons-codec:commons-codec:1.11
          |    |         |    |    +--- org.apache.httpcomponents:httpcore:4.4.14
          |    |         |    |    +--- com.google.code.findbugs:jsr305:3.0.2
          |    |         |    |    +--- com.google.guava:guava:30.1.1-android -> 30.1.1-jre
          |    |         |    |    |    +--- com.google.guava:failureaccess:1.0.1
          |    |         |    |    |    +--- com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
          |    |         |    |    |    +--- com.google.code.findbugs:jsr305:3.0.2
          |    |         |    |    |    +--- org.checkerframework:checker-qual:3.8.0
          |    |         |    |    |    +--- com.google.errorprone:error_prone_annotations:2.5.1
          |    |         |    |    |    \--- com.google.j2objc:j2objc-annotations:1.3
          |    |         |    |    +--- com.google.j2objc:j2objc-annotations:1.3
          |    |         |    |    +--- io.opencensus:opencensus-api:0.28.0
          |    |         |    |    |    \--- io.grpc:grpc-context:1.27.2
          |    |         |    |    \--- io.opencensus:opencensus-contrib-http-util:0.28.0
          |    |         |    |         +--- io.opencensus:opencensus-api:0.28.0 (*)
          |    |         |    |         \--- com.google.guava:guava:29.0-android -> 30.1.1-jre (*)
          |    |         |    \--- com.google.guava:guava:30.1-android -> 30.1.1-jre (*)
          |    |         +--- com.google.http-client:google-http-client-gson:1.39.0 -> 1.39.2
          |    |         |    +--- com.google.http-client:google-http-client:1.39.2 (*)
          |    |         |    \--- com.google.code.gson:gson:2.8.6
          |    |         +--- com.google.guava:guava:30.1-android -> 30.1.1-jre (*)
          |    |         +--- com.google.http-client:google-http-client-apache-v2:1.39.0 -> 1.39.2
          |    |         |    +--- com.google.http-client:google-http-client:1.39.2 (*)
          |    |         |    +--- org.apache.httpcomponents:httpclient:4.5.13 (*)
          |    |         |    \--- org.apache.httpcomponents:httpcore:4.4.14
          |    |         +--- org.apache.httpcomponents:httpcore:4.4.14
          |    |         +--- org.apache.httpcomponents:httpclient:4.5.13 (*)
          |    |         \--- com.google.http-client:google-http-client:1.39.0 -> 1.39.2 (*)
          |    +--- com.google.api-client:google-api-client:1.31.3 (*)
          |    +--- com.google.auth:google-auth-library-oauth2-http:0.25.2
          |    |    +--- com.google.auto.value:auto-value-annotations:1.7.4
          |    |    +--- com.google.code.findbugs:jsr305:3.0.2
          |    |    +--- com.google.auth:google-auth-library-credentials:0.25.2
          |    |    +--- com.google.http-client:google-http-client:1.39.1 -> 1.39.2 (*)
          |    |    +--- com.google.http-client:google-http-client-gson:1.39.1 -> 1.39.2 (*)
          |    |    \--- com.google.guava:guava:30.1-android -> 30.1.1-jre (*)
          |    \--- com.google.http-client:google-http-client-apache-v2:1.39.2 (*)
          +--- com.github.triplet.gradle:common-utils:3.4.0-agp4.2
          +--- com.github.triplet.gradle:common-validation:3.4.0-agp4.2
          +--- com.google.guava:guava:30.1.1-jre (*)
          \--- com.google.http-client:google-http-client-gson:1.39.2 (*)

(*) - dependencies omitted (listed previously)

A web-based, searchable dependency report is available by adding the --scan option.

> Task :buildEnvironment

------------------------------------------------------------
Root project '<ROOT PROJECT NAME>'
------------------------------------------------------------

classpath
+--- com.android.tools.build:gradle:4.2.0
|    +--- com.google.flatbuffers:flatbuffers-java:1.12.0
|    +--- org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2
|    |    +--- org.checkerframework:checker-qual:2.5.8 -> 2.11.1
|    |    \--- com.google.flatbuffers:flatbuffers-java:1.12.0
|    +--- com.android.tools.build:builder:4.2.0
|    |    +--- com.android.tools.build:builder-model:4.2.0
|    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31
|    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.31 -> 1.5.0
|    |    |    |    |    +--- org.jetbrains:annotations:13.0
|    |    |    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.5.0
|    |    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.31
|    |    |    |         \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.31 -> 1.5.0 (*)
|    |    |    \--- com.android.tools:annotations:27.2.0
|    |    +--- com.android.tools.build:builder-test-api:4.2.0
|    |    |    \--- com.android.tools.ddms:ddmlib:27.2.0
|    |    |         +--- com.android.tools:common:27.2.0
|    |    |         |    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31 (*)
|    |    |         |    +--- com.android.tools:annotations:27.2.0
|    |    |         |    \--- com.google.guava:guava:28.1-jre -> 29.0-jre
|    |    |         |         +--- com.google.guava:failureaccess:1.0.1
|    |    |         |         +--- com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
|    |    |         |         +--- com.google.code.findbugs:jsr305:3.0.2
|    |    |         |         +--- org.checkerframework:checker-qual:2.11.1
|    |    |         |         +--- com.google.errorprone:error_prone_annotations:2.3.4
|    |    |         |         \--- com.google.j2objc:j2objc-annotations:1.3
|    |    |         +--- net.sf.kxml:kxml2:2.3.0
|    |    |         \--- com.google.protobuf:protobuf-java:3.10.0
|    |    +--- com.android.tools:sdklib:27.2.0
|    |    |    +--- com.android.tools.layoutlib:layoutlib-api:27.2.0
|    |    |    |    +--- com.android.tools:common:27.2.0 (*)
|    |    |    |    +--- net.sf.kxml:kxml2:2.3.0
|    |    |    |    +--- com.android.tools:annotations:27.2.0
|    |    |    |    \--- org.jetbrains:annotations:13.0
|    |    |    +--- com.android.tools:dvlib:27.2.0
|    |    |    |    \--- com.android.tools:common:27.2.0 (*)
|    |    |    +--- com.android.tools:repository:27.2.0
|    |    |    |    +--- com.android.tools:common:27.2.0 (*)
|    |    |    |    +--- com.sun.activation:javax.activation:1.2.0
|    |    |    |    +--- org.apache.commons:commons-compress:1.12
|    |    |    |    +--- org.glassfish.jaxb:jaxb-runtime:2.3.2
|    |    |    |    |    +--- jakarta.xml.bind:jakarta.xml.bind-api:2.3.2
|    |    |    |    |    |    \--- jakarta.activation:jakarta.activation-api:1.2.1
|    |    |    |    |    +--- org.glassfish.jaxb:txw2:2.3.2
|    |    |    |    |    +--- com.sun.istack:istack-commons-runtime:3.0.8
|    |    |    |    |    |    \--- jakarta.activation:jakarta.activation-api:1.2.1
|    |    |    |    |    +--- org.jvnet.staxex:stax-ex:1.8.1
|    |    |    |    |    |    +--- jakarta.activation:jakarta.activation-api:1.2.1
|    |    |    |    |    |    \--- jakarta.xml.bind:jakarta.xml.bind-api:2.3.2 (*)
|    |    |    |    |    +--- com.sun.xml.fastinfoset:FastInfoset:1.2.16
|    |    |    |    |    \--- jakarta.activation:jakarta.activation-api:1.2.1
|    |    |    |    +--- com.google.jimfs:jimfs:1.1
|    |    |    |    |    \--- com.google.guava:guava:18.0 -> 29.0-jre (*)
|    |    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31 (*)
|    |    |    +--- com.google.code.gson:gson:2.8.6
|    |    |    +--- org.apache.commons:commons-compress:1.12
|    |    |    +--- org.apache.httpcomponents:httpmime:4.5.6
|    |    |    |    \--- org.apache.httpcomponents:httpclient:4.5.6 -> 4.5.12
|    |    |    |         +--- org.apache.httpcomponents:httpcore:4.4.13
|    |    |    |         +--- commons-logging:commons-logging:1.2
|    |    |    |         \--- commons-codec:commons-codec:1.11
|    |    |    \--- org.apache.httpcomponents:httpcore:4.4.10 -> 4.4.13
|    |    +--- com.android.tools:sdk-common:27.2.0
|    |    |    +--- com.android.tools:sdklib:27.2.0 (*)
|    |    |    +--- com.android.tools.build:builder-test-api:4.2.0 (*)
|    |    |    +--- com.android.tools.build:builder-model:4.2.0 (*)
|    |    |    +--- com.android.tools.ddms:ddmlib:27.2.0 (*)
|    |    |    +--- com.android.tools.analytics-library:shared:27.2.0
|    |    |    |    +--- com.android.tools.analytics-library:protos:27.2.0
|    |    |    |    |    \--- com.google.protobuf:protobuf-java:3.10.0
|    |    |    |    +--- com.android.tools:annotations:27.2.0
|    |    |    |    +--- com.android.tools:common:27.2.0 (*)
|    |    |    |    +--- com.google.guava:guava:28.1-jre -> 29.0-jre (*)
|    |    |    |    +--- com.google.code.gson:gson:2.8.6
|    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31 (*)
|    |    |    |    \--- net.java.dev.jna:jna-platform:5.6.0
|    |    |    |         \--- net.java.dev.jna:jna:5.6.0
|    |    |    +--- org.bouncycastle:bcpkix-jdk15on:1.56
|    |    |    |    \--- org.bouncycastle:bcprov-jdk15on:1.56
|    |    |    +--- org.bouncycastle:bcprov-jdk15on:1.56
|    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31 (*)
|    |    |    +--- org.jetbrains.kotlin:kotlin-reflect:1.4.31 -> 1.5.0
|    |    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.5.0 (*)
|    |    |    +--- com.google.protobuf:protobuf-java:3.10.0
|    |    |    +--- javax.inject:javax.inject:1
|    |    |    +--- org.jetbrains.intellij.deps:trove4j:1.0.20181211
|    |    |    +--- com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524 -> 4.2.0-7147631
|    |    |    |    \--- com.google.protobuf:protobuf-java:3.10.0
|    |    |    \--- xerces:xercesImpl:2.12.0
|    |    |         \--- xml-apis:xml-apis:1.4.01
|    |    +--- com.android.tools:common:27.2.0 (*)
|    |    +--- com.android.tools.build:manifest-merger:27.2.0
|    |    |    +--- com.android.tools:common:27.2.0 (*)
|    |    |    +--- com.android.tools:sdklib:27.2.0 (*)
|    |    |    +--- com.android.tools:sdk-common:27.2.0 (*)
|    |    |    +--- com.google.code.gson:gson:2.8.6
|    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31 (*)
|    |    |    \--- net.sf.kxml:kxml2:2.3.0
|    |    +--- com.android.tools.ddms:ddmlib:27.2.0 (*)
|    |    +--- com.android:zipflinger:4.2.0
|    |    |    \--- com.android.tools:annotations:27.2.0
|    |    +--- com.android:signflinger:4.2.0
|    |    |    +--- com.android.tools.build:apksig:4.2.0
|    |    |    \--- com.android:zipflinger:4.2.0 (*)
|    |    +--- com.android.tools.analytics-library:protos:27.2.0 (*)
|    |    +--- com.android.tools.analytics-library:tracker:27.2.0
|    |    |    +--- com.android.tools:annotations:27.2.0
|    |    |    +--- com.android.tools:common:27.2.0 (*)
|    |    |    +--- com.android.tools.analytics-library:protos:27.2.0 (*)
|    |    |    +--- com.android.tools.analytics-library:shared:27.2.0 (*)
|    |    |    +--- com.google.protobuf:protobuf-java:3.10.0
|    |    |    +--- com.google.guava:guava:28.1-jre -> 29.0-jre (*)
|    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31 (*)
|    |    +--- com.android.tools.build:apksig:4.2.0
|    |    +--- com.android.tools.build:apkzlib:4.2.0
|    |    |    +--- com.google.code.findbugs:jsr305:1.3.9 -> 3.0.2
|    |    |    +--- com.google.guava:guava:23.0 -> 29.0-jre (*)
|    |    |    +--- org.bouncycastle:bcpkix-jdk15on:1.56 (*)
|    |    |    +--- org.bouncycastle:bcprov-jdk15on:1.56
|    |    |    \--- com.android.tools.build:apksig:4.2.0
|    |    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31 (*)
|    |    +--- com.squareup:javawriter:2.5.0
|    |    +--- org.bouncycastle:bcpkix-jdk15on:1.56 (*)
|    |    +--- org.bouncycastle:bcprov-jdk15on:1.56
|    |    +--- org.ow2.asm:asm:7.0 -> 9.1
|    |    +--- org.ow2.asm:asm-tree:7.0 -> 9.1
|    |    |    \--- org.ow2.asm:asm:9.1
|    |    +--- javax.inject:javax.inject:1
|    |    +--- org.ow2.asm:asm-commons:7.0 -> 9.1
|    |    |    +--- org.ow2.asm:asm:9.1
|    |    |    +--- org.ow2.asm:asm-tree:9.1 (*)
|    |    |    \--- org.ow2.asm:asm-analysis:9.1
|    |    |         \--- org.ow2.asm:asm-tree:9.1 (*)
|    |    +--- org.ow2.asm:asm-util:7.0
|    |    |    +--- org.ow2.asm:asm:7.0 -> 9.1
|    |    |    +--- org.ow2.asm:asm-tree:7.0 -> 9.1 (*)
|    |    |    \--- org.ow2.asm:asm-analysis:7.0 -> 9.1 (*)
|    |    +--- it.unimi.dsi:fastutil:8.4.0
|    |    +--- net.sf.jopt-simple:jopt-simple:4.9
|    |    \--- com.googlecode.json-simple:json-simple:1.1
|    +--- com.android.tools.build:aapt2-proto:4.2.0-7147631 (*)
|    +--- com.android.tools.build:aaptcompiler:4.2.0
|    |    +--- com.android.tools.build:aapt2-proto:4.2.0-7147631 (*)
|    |    +--- com.android.tools.layoutlib:layoutlib-api:27.2.0 (*)
|    |    +--- com.google.guava:guava:28.1-jre -> 29.0-jre (*)
|    |    \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31 (*)
|    +--- com.android.tools.analytics-library:crash:27.2.0
|    |    +--- com.android.tools:annotations:27.2.0
|    |    +--- com.google.guava:guava:28.1-jre -> 29.0-jre (*)
|    |    +--- org.apache.httpcomponents:httpmime:4.5.6 (*)
|    |    +--- org.apache.httpcomponents:httpcore:4.4.10 -> 4.4.13
|    |    \--- org.apache.httpcomponents:httpclient:4.5.6 -> 4.5.12 (*)
|    +--- com.android.tools.lint:lint-gradle-api:27.2.0
|    |    +--- com.android.tools:sdklib:27.2.0 (*)
|    |    +--- com.android.tools.lint:lint-model:27.2.0
|    |    |    +--- com.android.tools:common:27.2.0 (*)
|    |    |    +--- com.android.tools:sdk-common:27.2.0 (*)
|    |    |    +--- com.android.tools.build:builder-model:4.2.0 (*)
|    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31 (*)
|    |    |    \--- net.sf.kxml:kxml2:2.3.0
|    |    +--- com.android.tools.build:gradle-api:4.2.0
|    |    |    +--- com.android.tools.build:builder-test-api:4.2.0 (*)
|    |    |    +--- com.google.guava:guava:28.1-jre -> 29.0-jre (*)
|    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31 (*)
|    |    |    \--- org.ow2.asm:asm:7.0 -> 9.1
|    |    +--- org.jetbrains.kotlin:kotlin-reflect:1.4.31 -> 1.5.0 (*)
|    |    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31 (*)
|    |    \--- com.google.guava:guava:28.1-jre -> 29.0-jre (*)
|    +--- com.android.tools.build:gradle-api:4.2.0 (*)
|    +--- androidx.databinding:databinding-compiler-common:4.2.0
|    |    +--- androidx.databinding:databinding-common:4.2.0
|    |    +--- com.android.databinding:baseLibrary:4.2.0
|    |    +--- org.antlr:antlr4:4.5.3
|    |    +--- commons-io:commons-io:2.4 -> 2.6
|    |    +--- com.googlecode.juniversalchardet:juniversalchardet:1.0.3
|    |    +--- com.google.guava:guava:28.1-jre -> 29.0-jre (*)
|    |    +--- com.squareup:javapoet:1.10.0 -> 1.12.1
|    |    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31 (*)
|    |    +--- com.google.code.gson:gson:2.8.6
|    |    +--- org.glassfish.jaxb:jaxb-runtime:2.3.2 (*)
|    |    +--- com.android.tools:annotations:27.2.0
|    |    \--- com.android.tools.build.jetifier:jetifier-core:1.0.0-beta09
|    |         +--- com.google.code.gson:gson:2.8.0 -> 2.8.6
|    |         \--- org.jetbrains.kotlin:kotlin-stdlib:1.3.60 -> 1.5.0 (*)
|    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31 (*)
|    +--- com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api
|    +--- org.ow2.asm:asm:7.0 -> 9.1
|    +--- org.ow2.asm:asm-analysis:7.0 -> 9.1 (*)
|    +--- org.ow2.asm:asm-commons:7.0 -> 9.1 (*)
|    +--- org.ow2.asm:asm-util:7.0 (*)
|    +--- net.sf.jopt-simple:jopt-simple:4.9
|    +--- net.sf.proguard:proguard-gradle:6.0.3
|    |    \--- net.sf.proguard:proguard-base:6.0.3
|    +--- com.android.tools.build:bundletool:1.1.0
|    |    +--- com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524 -> 4.2.0-7147631 (*)
|    |    +--- com.google.auto.value:auto-value-annotations:1.6.2
|    |    +--- com.google.errorprone:error_prone_annotations:2.3.1 -> 2.3.4
|    |    +--- com.google.guava:guava:27.0.1-jre -> 29.0-jre (*)
|    |    +--- com.google.protobuf:protobuf-java:3.4.0 -> 3.10.0
|    |    +--- com.google.protobuf:protobuf-java-util:3.4.0 -> 3.10.0
|    |    |    +--- com.google.protobuf:protobuf-java:3.10.0
|    |    |    +--- com.google.guava:guava:28.0-android -> 29.0-jre (*)
|    |    |    +--- com.google.errorprone:error_prone_annotations:2.3.2 -> 2.3.4
|    |    |    \--- com.google.code.gson:gson:2.8.5 -> 2.8.6
|    |    +--- com.google.dagger:dagger:2.28.3
|    |    |    \--- javax.inject:javax.inject:1
|    |    \--- javax.inject:javax.inject:1
|    +--- com.android.tools.build.jetifier:jetifier-core:1.0.0-beta09 (*)
|    +--- com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09
|    |    +--- com.android.tools.build.jetifier:jetifier-core:1.0.0-beta09 (*)
|    |    +--- org.ow2.asm:asm:6.0 -> 9.1
|    |    +--- org.ow2.asm:asm-util:6.0 -> 7.0 (*)
|    |    +--- org.ow2.asm:asm-commons:6.0 -> 9.1 (*)
|    |    +--- org.jdom:jdom2:2.0.6
|    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.3.60 -> 1.5.0 (*)
|    +--- com.squareup:javapoet:1.10.0 -> 1.12.1
|    +--- com.google.protobuf:protobuf-java:3.10.0
|    +--- com.google.protobuf:protobuf-java-util:3.10.0 (*)
|    +--- com.google.crypto.tink:tink:1.3.0-rc2
|    |    +--- com.google.protobuf:protobuf-java:3.10.0
|    |    \--- org.json:json:20180813
|    \--- com.google.testing.platform:core-proto:0.0.8-alpha01
+--- com.google.gms:google-services:4.3.5
|    +--- com.google.android.gms:strict-version-matcher-plugin:1.2.2
|    |    +--- com.google.code.findbugs:jsr305:3.0.2
|    |    +--- com.google.guava:guava:27.0.1-jre -> 29.0-jre (*)
|    |    \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10 -> 1.4.31 (*)
|    +--- com.google.code.gson:gson:2.8.5 -> 2.8.6
|    \--- com.google.guava:guava:27.0.1-jre -> 29.0-jre (*)
+--- org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0
|    +--- org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.5.0
|    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.5.0 (*)
|    +--- org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.5.0
|    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.5.0 (*)
|    +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.0 (*)
|    +--- org.jetbrains.kotlin:kotlin-util-klib:1.5.0
|    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.0 (*)
|    |    \--- org.jetbrains.kotlin:kotlin-util-io:1.5.0
|    |         \--- org.jetbrains.kotlin:kotlin-stdlib:1.5.0 (*)
|    +--- com.google.code.gson:gson:2.8.6
|    +--- de.undercouch:gradle-download-task:4.1.1
|    +--- com.github.gundy:semver4j:0.16.4
|    +--- org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.0
|    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.0 (*)
|    |    +--- org.jetbrains.kotlin:kotlin-script-runtime:1.5.0
|    |    +--- org.jetbrains.kotlin:kotlin-reflect:1.5.0 (*)
|    |    +--- org.jetbrains.kotlin:kotlin-daemon-embeddable:1.5.0
|    |    \--- org.jetbrains.intellij.deps:trove4j:1.0.20181211
|    +--- org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.5.0
|    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.0 (*)
|    |    \--- org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.0 (*)
|    +--- org.jetbrains.kotlin:kotlin-android-extensions:1.5.0
|    |    \--- org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.0 (*)
|    +--- org.jetbrains.kotlin:kotlin-compiler-runner:1.5.0
|    |    +--- org.jetbrains.kotlin:kotlin-build-common:1.5.0
|    |    +--- org.jetbrains.kotlin:kotlin-daemon-client:1.5.0
|    |    |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8
|    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.71 -> 1.5.0 (*)
|    |    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.3.71 -> 1.5.0
|    |    |    \--- org.jetbrains.kotlin:kotlin-reflect:1.5.0 (*)
|    |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8 (*)
|    |    \--- org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.0 (*)
|    +--- org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.5.0
|    |    +--- org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.5.0
|    |    |    +--- org.jetbrains.kotlin:kotlin-scripting-common:1.5.0
|    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.0 (*)
|    |    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8 (*)
|    |    |    +--- org.jetbrains.kotlin:kotlin-scripting-jvm:1.5.0
|    |    |    |    +--- org.jetbrains.kotlin:kotlin-script-runtime:1.5.0
|    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.0 (*)
|    |    |    |    \--- org.jetbrains.kotlin:kotlin-scripting-common:1.5.0 (*)
|    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.0 (*)
|    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8 (*)
|    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.5.0 (*)
|    +--- org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.5.0 (*)
|    \--- org.jetbrains.kotlin:kotlin-reflect:1.5.0 (*)
+--- com.google.firebase:firebase-crashlytics-gradle:2.5.2
|    \--- com.google.firebase:firebase-crashlytics-buildtools:2.5.2
|         +--- org.apache.httpcomponents:httpclient:4.5.6 -> 4.5.12 (*)
|         +--- org.apache.httpcomponents:httpmime:4.5.6 (*)
|         +--- commons-cli:commons-cli:1.4
|         +--- commons-io:commons-io:2.6
|         +--- com.google.code.gson:gson:2.8.5 -> 2.8.6
|         \--- com.google.guava:guava:24.1-jre -> 29.0-jre (*)
+--- io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.7.1
|    +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.70 -> 1.5.0 (*)
|    +--- org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.70 -> 1.5.0 (*)
|    \--- org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.3.70 -> 1.5.0 (*)
+--- androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5
|    +--- com.android.tools.build:gradle:4.0.1 -> 4.2.0 (*)
|    +--- org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.31 -> 1.5.0 (*)
|    +--- com.google.code.gson:gson:2.8.0 -> 2.8.6
|    \--- androidx.navigation:navigation-safe-args-generator:2.3.5
|         +--- xpp3:xpp3:1.1.4c
|         +--- xmlpull:xmlpull:1.1.3.1
|         +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.71 -> 1.5.0 (*)
|         +--- com.squareup:javapoet:1.12.1
|         \--- com.squareup:kotlinpoet:1.7.2
|              +--- org.jetbrains.kotlin:kotlin-reflect:1.4.10 -> 1.5.0 (*)
|              \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10 -> 1.4.31 (*)
+--- com.google.android.gms:oss-licenses-plugin:0.10.4
|    \--- com.android.tools.build:gradle:3.5.1 -> 4.2.0 (*)
+--- com.google.firebase:firebase-appdistribution-gradle:2.1.1
|    +--- com.google.guava:guava:29.0-jre (*)
|    +--- com.google.api-client:google-api-client:1.30.9
|    |    +--- com.google.oauth-client:google-oauth-client:1.30.5 -> 1.31.0
|    |    |    +--- com.google.http-client:google-http-client:1.35.0
|    |    |    |    +--- org.apache.httpcomponents:httpclient:4.5.12 (*)
|    |    |    |    +--- org.apache.httpcomponents:httpcore:4.4.13
|    |    |    |    +--- com.google.code.findbugs:jsr305:3.0.2
|    |    |    |    +--- com.google.guava:guava:29.0-android -> 29.0-jre (*)
|    |    |    |    +--- com.google.j2objc:j2objc-annotations:1.3
|    |    |    |    +--- io.opencensus:opencensus-api:0.24.0
|    |    |    |    |    \--- io.grpc:grpc-context:1.22.1
|    |    |    |    \--- io.opencensus:opencensus-contrib-http-util:0.24.0
|    |    |    |         +--- io.opencensus:opencensus-api:0.24.0 (*)
|    |    |    |         \--- com.google.guava:guava:26.0-android -> 29.0-jre (*)
|    |    |    +--- com.google.code.findbugs:jsr305:3.0.2
|    |    |    \--- com.google.guava:guava:29.0-android -> 29.0-jre (*)
|    |    +--- com.google.http-client:google-http-client-jackson2:1.34.2
|    |    |    +--- com.google.http-client:google-http-client:1.34.2 -> 1.35.0 (*)
|    |    |    \--- com.fasterxml.jackson.core:jackson-core:2.10.2
|    |    \--- com.google.guava:guava:28.2-android -> 29.0-jre (*)
|    +--- commons-cli:commons-cli:1.4
|    +--- com.google.code.gson:gson:2.8.6
|    +--- com.google.oauth-client:google-oauth-client:1.31.0 (*)
|    +--- com.google.oauth-client:google-oauth-client-java6:1.31.0
|    |    \--- com.google.oauth-client:google-oauth-client:1.31.0 (*)
|    \--- com.google.oauth-client:google-oauth-client-jetty:1.31.0
|         \--- com.google.oauth-client:google-oauth-client-java6:1.31.0 (*)
+--- com.google.dagger:hilt-android-gradle-plugin:2.35.1
|    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.20 -> 1.4.31 (*)
|    +--- org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20 -> 1.5.0 (*)
|    +--- org.javassist:javassist:3.26.0-GA
|    \--- org.ow2.asm:asm:9.0 -> 9.1
+--- org.jacoco:org.jacoco.core:0.8.7
|    +--- org.ow2.asm:asm:9.1
|    +--- org.ow2.asm:asm-commons:9.1 (*)
|    \--- org.ow2.asm:asm-tree:9.1 (*)
\--- com.github.ben-manes:gradle-versions-plugin:0.38.0
     \--- com.thoughtworks.xstream:xstream:1.4.15
          +--- xmlpull:xmlpull:1.1.3.1
          \--- xpp3:xpp3_min:1.1.4c

@piotradamczyk5
Copy link
Author

piotradamczyk5 commented May 20, 2021

Now the issue is always reproducible, so if you need some additional help please let me know

EDIT:
After downgrading the plugin to 3.3.0 and AGP to 4.1.2 issue still occurs 👎

@SUPERCILEX
Copy link
Collaborator

I still can't reproduce unfortunately. :( If you're able to share a sample project of some sort that showcases the issue, that would be super helpful.

@piotradamczyk5
Copy link
Author

I still can't reproduce unfortunately. :( If you're able to share a sample project of some sort that showcases the issue, that would be super helpful.

Unfortunately, I cannot share our project. Is there any other way that we could somehow debug it and fix it?

@Toubap
Copy link

Toubap commented May 26, 2021

I guess @SUPERCILEX meant an empty project with the same configuration

@SUPERCILEX
Copy link
Collaborator

Yeah, that's what I meant. Some kind of sample project that has the bug. I have a public API key here: https://github.com/Triple-T/gradle-play-publisher/blob/master/testapp/google-play-auto-publisher.json

@CoreFloDev
Copy link

Same issue here, I have tried to downgrade all I could, kotlin, android studio plugin, and it is still not working

@CoreFloDev
Copy link

I had to revert it all to 3.0.0 to have it working any other version doesn't work for me

@Diolor
Copy link

Diolor commented Jun 3, 2021

Issue must be the following:
com.google.api.services.androidpublisher.AndroidPublisher calls com.google.api.client.http.HttpTransport#isMtls() function.

But isMtls() function got introduced in HttpTransport only in google-http-client v1.38...
Apparently, AndroidPublisher lib doesn't have v1.38+ of the client explicitly...

Newest versions of those two libs are (right now):

classpath("com.google.http-client:google-http-client:1.39.2")
classpath("com.google.apis:google-api-services-androidpublisher:v3-rev20210527-1.31.0")

We can either add those lines in our buildscript dependencies or in the dependencies of this plugin (❤️).

@SUPERCILEX
Copy link
Collaborator

@CoreFloDev
Copy link

that version doesn't seems compatible with Android Gradle plugin 7.0.0-beta03

@SUPERCILEX
Copy link
Collaborator

SUPERCILEX commented Jun 3, 2021

Ah, yeah. I just updated the CI to publish snapshot builds for the *-agp7.0 releases: 3.5.0-agp7.0-SNAPSHOT. https://oss.sonatype.org/content/repositories/snapshots/com/github/triplet/gradle/android-publisher/3.5.0-agp7.0-SNAPSHOT/android-publisher-3.5.0-agp7.0-20210603.233611-1.pom

@CoreFloDev
Copy link

Just tested yes it is working fine on that version 👍

@SUPERCILEX
Copy link
Collaborator

Woo! It'll be fixed in 3.5 then.

JBassett added a commit to home-assistant/android that referenced this issue Jun 10, 2021
@NitroG42
Copy link

NitroG42 commented Jul 5, 2021

Is it supposed to be fixed with the current 3.5.0 version on apg 4.2.2 ? I still got the issue unfortunatelly

@NitroG42
Copy link

NitroG42 commented Jul 5, 2021

OK so for anyone that have the same issue, you can't use:

plugins {
    id 'com.android.application'
    id 'com.github.triplet.play' version '3.5.0'
}

you have to do:

buildscript {
    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.2'
        classpath("com.github.triplet.gradle:play-publisher:3.5.0")
}

apply plugin: 'com.github.triplet.play'

@nuhkoca
Copy link

nuhkoca commented Sep 2, 2021

OK so for anyone that have the same issue, you can't use:

plugins {
    id 'com.android.application'
    id 'com.github.triplet.play' version '3.5.0'
}

you have to do:

buildscript {
    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.2'
        classpath("com.github.triplet.gradle:play-publisher:3.5.0")
}

apply plugin: 'com.github.triplet.play'

This is a working solution indeed.

rauljurado620 added a commit to rauljurado620/android-apps that referenced this issue Mar 24, 2022
zarakarlsson628 added a commit to zarakarlsson628/android-gradle-common that referenced this issue Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

7 participants