Closed zkareyes closed 4 years ago
Please share the stack trace.
Hi @SUPERCILEX! Thanks for the fast response. We tried running - ./gradlew publishDevReleaseApk --artifact-dir app/build/artifact --stacktrace task and got this error.
Execution failed for task ':generateEditForPhDotComDotGlobeDotGlobeathome'.
A failure occurred while executing com.github.triplet.gradle.play.tasks.GenerateEdit$Generator
Could not create an instance of type com.github.triplet.gradle.play.tasks.GenerateEdit$Generator.
com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient$Builder.setBatchPath(Ljava/lang/String;)Lcom/google/api/client/googleapis/services/AbstractGoogleClient$Builder;
Stack trace
Caused by: org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing com.github.triplet.gradle.play.tasks.GenerateEdit$Generator
Caused by: org.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type com.github.triplet.gradle.play.tasks.GenerateEdit$Generator.
Caused by: java.lang.NoSuchMethodError: com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient$Builder.setBatchPath(Ljava/lang/String;)Lcom/google/api/client/googleapis/services/AbstractGoogleClient$Builder;
at com.google.api.services.androidpublisher.AndroidPublisher$Builder.setBatchPath(AndroidPublisher.java:8996)
at com.google.api.services.androidpublisher.AndroidPublisher$Builder.<init>(AndroidPublisher.java:8975)
at com.github.triplet.gradle.androidpublisher.internal.AndroidPublisherKt.createPublisher(AndroidPublisher.kt:37)
at com.github.triplet.gradle.androidpublisher.internal.DefaultPlayPublisher$Factory.create(DefaultPlayPublisher.kt:189)
at com.github.triplet.gradle.androidpublisher.PlayPublisher$Companion.invoke(PlayPublisher.kt:92)
at com.github.triplet.gradle.play.tasks.GenerateEdit$Generator.<init>(GenerateEdit.kt:49)
at com.github.triplet.gradle.play.tasks.GenerateEdit$Generator$Inject.<init>(Unknown Source)
Thanks!
Ah, see here: https://github.com/Triple-T/gradle-play-publisher/issues/344#issuecomment-452277735. Let me know if that doesn't work.
Hi All,
I'm new to this automated publisher.
Describe the bug:
What went wrong: Execution failed for task ':app:uploadDevReleasePrivateApk'. A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishInternalSharingApk$Processor Could not create an instance of type com.github.triplet.gradle.play.tasks.PublishInternalSharingApk$Processor.
Versions:
Task
Additional context I'm using AWS codeBuild for this process