Closed ArcherEmiya05 closed 3 years ago
What does "not work" mean? By default it'll publish to the internal track, you need to specify production if you don't want that.
What does "not work" mean? By default it'll publish to the internal track, you need to specify production if you don't want that.
After executing the above command in AS terminal what I get is in the title Task 'publishFreeReleaseBundle' not found in project ':app'.
Use publishReleaseBundle
.
Use
publishReleaseBundle
.
Will try this one many thanks, may I also know what are the list of task command available with GPP because as I saw in many article they used publishFreeReleaseBundle
or publishProReleaseBundle
instead of just publishReleaseBundle
and I do not know the difference when not specifying if free or pro version.
That's if you have flavor dimensions (you don't). See https://github.com/Triple-T/gradle-play-publisher#task-organization
That's if you have flavor dimensions (you don't). See https://github.com/Triple-T/gradle-play-publisher#task-organization
Oh I really missed that part, thank you so much!
@SUPERCILEX i'm using id 'com.github.triplet.play' version '2.2.1' and trying to upload app bundle instead of apk by default and apk upload working fine. play { track = 'beta' defaultToAppBundles = true serviceAccountCredentials = file('k.json') }
but when I run ./gradlew publish
getting exception what am I missing you can please guide me ?
What went wrong: BUNDLE
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 6s
Please follow the readme. 2.2.1 is way too old, you should be on a 3.x.
Use
publishReleaseBundle
.
Still not working as I am getting this instead
* What went wrong:
A problem occurred configuring project ':app'.
> Could not create task ':app:publishReleaseBundle'.
> com/android/build/api/artifact/ArtifactType$BUNDLE
Right, you're using AGP 7.1, so you'll need GPP 3.5.0-agp7.0.
It works, this will be very handy on a CI CD setup. Kudos!
Describe the bug
Good day I am new to this and trying to use GPP in AS locally, I was able to do task like
bootstrapListing
but when I triedpublishFreeReleaseBundle
to release a AAB to internal track it does not work.Note: I already have releases in production track only.
How To Reproduce
This is what the gradle file looks like
Versions
3.5.0-SNAPSHOT
or3.6.0-SNAPSHOT
Tasks executed
gradlew -PANDROID_BUILD_COMPILED_SDK_VERSION=30 -PANDROID_BUILD_MIN_SDK_VERSION=21 -PANDROID_BUILD_TARGET_SDK_VERSION=30 -PDEBUG_KEYSTORE_FILE="C:/Users/USERNAME/Keys/Debug Key/debug.keystore" -PDEBUG_KEYSTORE_PASSWORD=android -PDEBUG_KEYSTORE_KEY_ALIAS=androiddebugkey -PDEBUG_KEYSTORE_KEY_PASSWORD=android -PAPPNAME_KEYSTORE_FILE="C:/Users/USERNAME/Keys/Release Key/keystore.jks" -PAPPNAME_KEYSTORE_PASSWORD=release -PAPPNAME_KEYSTORE_KEY_ALIAS=release -PAPPNAME_KEYSTORE_KEY_PASSWORD=release -PGOOGLE_PLAY_API_KEY="C:/Users/USERNAME/Keys/Google Play/google-play-api-key.json" -PBUILD_NUMBER=15 clean :app:publishFreeReleaseBundle
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.