Triple-T / gradle-play-publisher

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

3.5.0 publishApk - KotlinNothingValueException #945

Closed kofsiwon closed 3 years ago

kofsiwon commented 3 years ago

Describe the bug

I can't publish apk because KotlinNothingValueException I used 3.4.0, but now there is no 3.4.0-SNAPSHOT.

./gradlew publishApk --artifact-dir $apkPath ...

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.

How To Reproduce

React-Native

dependencies { classpath('com.android.tools.build:gradle:4.1.1') // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files classpath 'com.google.gms:google-services:4.3.3' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0' classpath 'com.github.triplet.gradle:play-publisher:3.5.0-SNAPSHOT' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" }

./gradlew publishApk --artifact-dir $apkPath

Versions

+--- com.github.triplet.gradle:play-publisher:3.5.0-SNAPSHOT | +--- com.github.triplet.gradle:android-publisher:3.5.0-SNAPSHOT | | +--- com.github.triplet.gradle:common-utils:3.5.0-SNAPSHOT | +--- com.github.triplet.gradle:common-utils:3.5.0-SNAPSHOT | +--- com.github.triplet.gradle:common-validation:3.5.0-SNAPSHOT Gradle 6.5 +--- com.android.tools.build:gradle:4.1.3

Tasks executed

publishApk --artifact-dir

Expected behavior

success

Additional context (if a crash, provide stack trace)

Add any other context about the problem here. If this bug is a crash, run the task with --stacktrace to get the full context.

SUPERCILEX commented 3 years ago

Please run the gradle build with --stacktrace and share the output.

kofsiwon commented 3 years ago

solved by

insert into app/bundle.gradle plugins { id 'com.android.application' id 'com.github.triplet.play' version '3.4.0' }

instead of [classpath 'com.github.triplet.gradle:play-publisher:3.5.0-SNAPSHOT']