fastlane: i can't take screenshots with different languages ( android )

Hey i have problem to take multiple screen shots on android studio with different languages … . i only succeeded to take screenshot in english language and now when i try to take in another languages keep failing .

### ScreengrabFile is :

app_package_name(‘com.app’) use_tests_in_packages([‘example.com.test’])

use_adb_root(true)

app_apk_path(‘~/build/outputs/apk/debug/-debug.apk’) tests_apk_path(‘~/build/outputs/apk/androidTest/debug/-debug-androidTest.apk’)

test_instrumentation_runner ‘de.lemona.android.testng.ViaTestNGRunner’

locales([‘en-US’, ‘fr-FR’, ‘it-IT’])

clear_previous_screenshots(true)

### Fastfile desc(“Build debug and test APK for screenshots”) lane(:build_and_screengrab_1) do gradle(task: “assembleDebug assembleAndroidTest”) capture_android_screenshots end

### Fastlane Env

Key Value
OS 10.15.7
Ruby 2.6.3
Bundler? false
Git git version 2.21.1 (Apple Git-122.3)
Installation Source /usr/local/bin/fastlane
Host Mac OS X 10.15.7 (19H1030)
Ruby Lib Dir /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
OpenSSL Version LibreSSL 2.8.3
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Library/Developer/CommandLineTools/
Xcode Version
Swift Version 5.1.3

System Locale

Variable Value
LANG es_ES.UTF-8
LC_ALL en_US.UTF-8
LANGUAGE en_US.UTF-8

fastlane files:

`./fastlane/Fastfile`
# default_platform(:android)

# platform :android do

#   # before_all do 
#   #   ENV["SLACK_URL"] = "https://hooks.slack.com/services/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"
#   # end


# desc "Deploy a new version to the Google Play"
#   lane :deploy do
#     gradle(task: "clean assembleRelease")
    
#   end

#  desc("Assemble the debug app and tests APKs")
   lane(:assemble) do
         gradle(task: "assemble assembleAndroidTest", gradle_path: './gradlew')
  end

  desc("Build debug and test APK for screenshots")
  lane(:build_and_screengrab_1) do
    gradle(task: "assembleDebug assembleAndroidTest")
    capture_android_screenshots
  end


#     # after_all do |lane|
#     #   slack(
#     #       message: "Successfull deployed new app"
#     #     )
#     # end

#     # error do |lane,exception|
#     #   slack(
#     #       message: exception.message,
#     #       success: false
#     #     )
#     # end
# end

desc "Build debug and test APK for screenshots"
lane :build_for_screengrab do
  gradle(
    task: 'clean'
  )
  gradle(
    task: 'assemble',
    build_type: 'Debug'
  )
  gradle(
    task: 'assemble',
    build_type: 'AndroidTest'
  )
end


`./fastlane/Appfile`
json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("via.rider")

fastlane gems

Gem Version Update-Status
fastlane 2.187.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.3.0
atomos 0.1.3
CFPropertyList 2.3.6
claide 1.0.3
colored2 3.1.2
nanaimo 0.3.0
xcodeproj 1.19.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 2.0.0
unicode-display_width 1.7.0
terminal-table 1.8.0
plist 3.6.0
public_suffix 4.0.6
addressable 2.7.0
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.8.1
tty-cursor 0.7.1
tty-spinner 0.9.3
artifactory 3.0.15
babosa 1.0.4
colored 1.2
highline 2.0.3
commander 4.6.0
excon 0.83.0
faraday-em_http 1.0.0
faraday-em_synchrony 1.0.0
faraday-excon 1.1.0
faraday-net_http 1.0.1
faraday-net_http_persistent 1.1.0
ruby2_keywords 0.0.4
faraday 1.4.3
unf_ext 0.0.7.7
unf 0.1.4
domain_name 0.5.20190701
http-cookie 1.0.4
faraday-cookie_jar 0.0.7
faraday_middleware 1.0.0
fastimage 2.2.4
gh_inspector 1.1.3
json 2.1.0
mini_magick 4.11.0
naturally 2.2.1
rubyzip 2.3.0
security 0.1.3
xcpretty-travis-formatter 1.0.1
dotenv 2.7.6
bundler 1.17.2
simctl 1.6.8
jwt 2.2.3
uber 0.1.0
declarative 0.0.20
trailblazer-option 0.1.1
representable 3.1.1
retriable 3.1.2
mini_mime 1.1.0
memoist 0.16.2
multi_json 1.15.0
os 1.1.1
signet 0.15.0
googleauth 0.16.2
httpclient 2.8.3
rexml 3.1.9
webrick 1.4.2
google-apis-core 0.4.0
google-apis-playcustomapp_v1 0.4.0
google-apis-androidpublisher_v3 0.7.0
google-cloud-env 1.5.0
google-cloud-errors 1.1.0
google-cloud-core 1.6.0
google-apis-iamcredentials_v1 0.5.0
google-apis-storage_v1 0.5.0
rake 12.3.2
digest-crc 0.6.3
google-cloud-storage 1.33.0
emoji_regex 3.2.2
jmespath 1.4.0
aws-partitions 1.472.0
aws-eventstream 1.1.1
aws-sigv4 1.2.3
aws-sdk-core 3.115.0
aws-sdk-kms 1.44.0
aws-sdk-s3 1.96.1
forwardable 1.2.0
logger 1.3.0
date 2.0.0
stringio 0.0.2
ipaddr 1.2.2
openssl 2.1.2
zlib 1.0.0
ostruct 0.1.0
strscan 1.0.0
io-console 0.4.7
fileutils 1.1.0
etc 1.0.1
libxml-ruby 3.1.0
psych 3.1.0
mutex_m 0.1.0

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (4 by maintainers)

Most upvoted comments

@sgrgrsn , how did you downgrade the version. I’m using brew and not able to downgrade. Any suggestions?. TIA

If you use Bundler to install fastlane you can force it to be installed at a fixed version number.

Our Gemfile looks like this:

source "https://rubygems.org"

gem "fastlane", "2.186.0"

Hope it makes sense 🤙

It seems like you have not included the output of fastlane env To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍