Closed HerrNiklasRaab closed 6 years ago
Did you look at the beta track of the app?
If i try it with the command line it stucks at the Preparing apk at path:
Please post the complete output of the command (including the command) with --verbose
.
@janpio Uploading via "fastlane supply" worked correctly now, my internet connection was slow. The output "Preparing apk at path" is little bit missunderstanding, because it is not preparing it is uploading.
But uploading via the fastlane script with the function "upload_to_play_store" is still not working correctly. The output says that the command "fastlane alpha" finished successfully. But no apk is uploaded and as you see in the output the function "upload_to_play_store" takes 4s. 4s are to less to upload the apk. This i proved also in the play store developer console. Apk is not uploaded via the "fastlane alpha" command.
4s are more than enough for what you ask upload_to_play_store
to do:
fastlane alpha
is a command that executes the alpha
lane (from your Fastfile
):
lane :alpha do
upload_to_play_store(
track: 'beta',
json_key: "googleServiceAccountPlayStore.json",
skip_upload_images: true
)
end
You are missing the path to the APK here, so it is just uploading and updating the metadata.
This will probably work just fine as it is if you run a lane that executes gradle
right before, as this will set an environment variable with the APK path, and it will appear in the Summary for supply ...
table. (WHich is probably also why fastlane supply
worked)
But to make sure this lane always works, you will have to set the the path to the apk in the apk
option/parameter.
@janpio Thanks a lot, that was the problem. Thanks!
Hello,
just tried to set up the lane for uploading to playstore, but it doesn't seem to work. It says it finished sucessfully, but on my playstore console. Nothing got uploaded.
This is what i get, when I execute my lane for uploading to playstore:
`
β fastlane environment β
Stack
System Locale
fastlane files:
`./fastlane/Fastfile`
```ruby # This file contains the fastlane.tools configuration # You can find the documentation at https://docs.fastlane.tools # # For a list of all available actions, check out # # https://docs.fastlane.tools/actions # # For a list of all available plugins, check out # # https://docs.fastlane.tools/plugins/available-plugins # # Uncomment the line if you want fastlane to automatically update itself update_fastlane default_platform(:android) platform :android do desc "Runs all the tests" lane :test do gradle(task: "test") end desc "Submit a new Beta Build to Crashlytics Beta" lane :beta do gradle(task: "clean assembleRelease") crashlytics # sh "your_script.sh" # You can also use other beta testing services here end desc "Deploy a new version to the Google Play" lane :deploy do gradle(task: "clean assembleRelease") end end lane :alpha do upload_to_play_store( track: 'beta', json_key: "googleServiceAccountPlayStore.json", skip_upload_images: true ) end ````./fastlane/Appfile`
```ruby package_name("com.hapi.hapiapp") ```fastlane gems
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
| Gem | Version | | ------------------------- | ------------ | | did_you_mean | 1.2.0 | | slack-notifier | 2.3.2 | | atomos | 0.1.3 | | CFPropertyList | 3.0.0 | | claide | 1.0.2 | | colored2 | 3.1.2 | | nanaimo | 0.2.6 | | xcodeproj | 1.7.0 | | rouge | 2.0.7 | | xcpretty | 0.3.0 | | terminal-notifier | 1.8.0 | | unicode-display_width | 1.4.0 | | terminal-table | 1.8.0 | | plist | 3.4.0 | | multipart-post | 2.0.0 | | word_wrap | 1.0.0 | | public_suffix | 2.0.5 | | tty-screen | 0.6.5 | | tty-cursor | 0.6.0 | | tty-spinner | 0.8.0 | | babosa | 1.0.2 | | colored | 1.2 | | highline | 1.7.10 | | commander-fastlane | 4.4.6 | | excon | 0.62.0 | | faraday | 0.15.3 | | unf_ext | 0.0.7.5 | | unf | 0.1.4 | | domain_name | 0.5.20180417 | | http-cookie | 1.0.3 | | faraday-cookie_jar | 0.0.6 | | fastimage | 2.1.4 | | gh_inspector | 1.1.3 | | json | 2.1.0 | | mini_magick | 4.5.1 | | multi_json | 1.13.1 | | multi_xml | 0.6.0 | | rubyzip | 1.2.2 | | security | 0.1.3 | | xcpretty-travis-formatter | 1.0.0 | | dotenv | 2.5.0 | | bundler | 1.16.6 | | faraday_middleware | 0.12.2 | | naturally | 2.2.0 | | simctl | 1.6.5 | | uber | 0.1.0 | | declarative | 0.0.10 | | declarative-option | 0.1.0 | | representable | 3.0.4 | | retriable | 3.1.2 | | addressable | 2.5.2 | | mime-types-data | 3.2018.0812 | | mime-types | 3.2.2 | | jwt | 2.1.0 | | signet | 0.11.0 | | memoist | 0.16.0 | | os | 1.0.0 | | googleauth | 0.6.7 | | httpclient | 2.8.3 | | google-api-client | 0.23.9 | | emoji_regex | 0.1.1 | | openssl | 2.1.2 | | fiddle | 1.0.0 | | date | 1.0.0 | | fileutils | 1.0.2 | | ipaddr | 1.2.0 | | psych | 3.0.2 |generated on: 2018-11-18`