Android build is broken after updating android sdk, jdk and gradle version
vinayseasia opened this issue · comments
compileSdkVersion : 32,
minSdkVersion : 26,
targetSdkVersion : 32,
Gradle version : 7.3.3
Android Gradle Plugin : 7.2.1
open jdk : 11
Log file : apps_a8d2ed33cc464fd2_4c480e85-2aa9-49bc-a980-38fe02bd7398-full.txt
I am able to build my project on local machine(mac) but its failing on bitrise.
✅ fastlane environment ✅
Stack
Key | Value |
---|---|
OS | 12.3.1 |
Ruby | 2.6.8 |
Bundler? | false |
Git | git version 2.33.0 |
Installation Source | /usr/local/bin/fastlane |
Host | macOS 12.3.1 (21E258) |
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.6.1 |
System Locale
Variable | Value | |
---|---|---|
LANG | en_US.UTF-8 | |
LC_ALL | ||
LANGUAGE |
fastlane files:
`./Fastfile`
update_fastlane
default_platform(:android)
platform :android do
desc "Build daily"
lane :daily do
gradle(
task: 'bundle',
build_type: 'daily',
properties: {
"android.injected.signing.store.file" => ENV["KEYSTORE_PATH"],
"android.injected.signing.store.password" => ENV["KEYSTORE_PASSWORD"],
"android.injected.signing.key.alias" => ENV["KEYSTORE_ALIAS"],
"android.injected.signing.key.password" => ENV["PRIVATE_KEY_PASSWORD"],
}
)
bundletool(
ks_path: ENV["KEYSTORE_PATH"],
ks_password: ENV["KEYSTORE_PASSWORD"],
ks_key_alias: ENV["KEYSTORE_ALIAS"],
ks_key_alias_password: ENV["PRIVATE_KEY_PASSWORD"],
bundletool_version: "1.2.0",
aab_path: "./app/build/outputs/bundle/daily/app-daily.aab",
apk_output_path: "./app/build/outputs/bundle/daily/app-daily.apk",
verbose: true
)
firebase_app_distribution(
app: "1:746097776372:android:----",
apk_path: "./app/build/outputs/bundle/daily/app-daily.apk",
service_credentials_file: ENV["KEY_PATH"],
groups: "testers"
)
end
end
`./Appfile`
json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("") # e.g. com.krausefx.app
fastlane gems
Gem | Version | Update-Status |
---|---|---|
fastlane | 2.206.2 |
Loaded fastlane plugins:
Plugin | Version | Update-Status |
---|---|---|
fastlane-plugin-bundletool | 1.0.6 | |
fastlane-plugin-firebase_app_distribution | 0.3.4 |
Loaded gems
Gem | Version |
---|---|
did_you_mean | 1.6.1 |
atomos | 0.1.3 |
claide | 1.1.0 |
colored2 | 3.1.2 |
nanaimo | 0.3.0 |
rexml | 3.2.5 |
xcodeproj | 1.21.0 |
rouge | 2.0.7 |
xcpretty | 0.3.0 |
terminal-notifier | 2.0.0 |
unicode-display_width | 1.8.0 |
terminal-table | 1.8.0 |
plist | 3.6.0 |
public_suffix | 4.0.7 |
addressable | 2.8.0 |
multipart-post | 2.0.0 |
word_wrap | 1.0.0 |
optparse | 0.1.1 |
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.92.3 |
faraday-em_http | 1.0.0 |
faraday-em_synchrony | 1.0.0 |
faraday-excon | 1.1.0 |
faraday-httpclient | 1.0.1 |
faraday-multipart | 1.0.4 |
faraday-net_http | 1.0.1 |
faraday-net_http_persistent | 1.2.0 |
faraday-patron | 1.0.0 |
faraday-rack | 1.0.0 |
faraday-retry | 1.0.3 |
ruby2_keywords | 0.0.5 |
faraday | 1.10.0 |
unf_ext | 0.0.8.2 |
unf | 0.1.4 |
domain_name | 0.5.20190701 |
http-cookie | 1.0.5 |
faraday-cookie_jar | 0.0.7 |
faraday_middleware | 1.2.0 |
fastimage | 2.2.6 |
gh_inspector | 1.1.3 |
mini_magick | 4.11.0 |
naturally | 2.2.1 |
rubyzip | 2.3.2 |
security | 0.1.3 |
xcpretty-travis-formatter | 1.0.1 |
dotenv | 2.7.6 |
bundler | 2.3.15 |
simctl | 1.6.8 |
jwt | 2.4.1 |
uber | 0.1.0 |
declarative | 0.0.20 |
trailblazer-option | 0.1.2 |
representable | 3.2.0 |
retriable | 3.1.2 |
mini_mime | 1.1.2 |
memoist | 0.16.2 |
multi_json | 1.15.0 |
os | 1.1.4 |
signet | 0.16.1 |
googleauth | 1.1.3 |
httpclient | 2.8.3 |
google-apis-core | 0.5.0 |
google-apis-playcustomapp_v1 | 0.7.0 |
google-apis-androidpublisher_v3 | 0.21.0 |
google-cloud-env | 1.6.0 |
google-cloud-errors | 1.2.0 |
google-cloud-core | 1.6.0 |
google-apis-iamcredentials_v1 | 0.10.0 |
google-apis-storage_v1 | 0.14.0 |
digest-crc | 0.6.4 |
google-cloud-storage | 1.36.2 |
emoji_regex | 3.2.3 |
jmespath | 1.6.1 |
aws-partitions | 1.597.0 |
aws-eventstream | 1.2.0 |
aws-sigv4 | 1.5.0 |
aws-sdk-core | 3.131.1 |
aws-sdk-kms | 1.57.0 |
aws-sdk-s3 | 1.114.0 |
CFPropertyList | 3.0.5 |
json | 2.6.2 |
webrick | 1.7.0 |
rake | 13.0.6 |
forwardable | 1.3.2 |
logger | 1.3.0 |
date | 3.2.2 |
stringio | 0.0.2 |
openssl | 2.1.2 |
ipaddr | 1.2.4 |
zlib | 1.0.0 |
mutex_m | 0.1.0 |
ostruct | 0.1.0 |
strscan | 1.0.0 |
io-console | 0.5.11 |
fileutils | 1.6.0 |
libxml-ruby | 3.2.3 |
psych | 3.1.0 |
fastlane-plugin-bundletool | 1.0.6 |
fastlane-plugin-firebase_app_distribution | 0.3.4 |
generated on: 2022-06-08
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
Just go to build setting setting and change Build system from gradle to internal. it will resolve your error. MYiClubOnline.com
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 offastlane env
👍
✅ fastlane environment ✅
Stack
Key | Value |
---|---|
OS | 12.3.1 |
Ruby | 2.6.8 |
Bundler? | false |
Git | git version 2.33.0 |
Installation Source | /usr/local/bin/fastlane |
Host | macOS 12.3.1 (21E258) |
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.6.1 |
System Locale
Variable | Value | |
---|---|---|
LANG | en_US.UTF-8 | |
LC_ALL | ||
LANGUAGE |
fastlane files:
`./Fastfile`
update_fastlane
default_platform(:android)
platform :android do
desc "Build daily"
lane :daily do
gradle(
task: 'bundle',
build_type: 'daily',
properties: {
"android.injected.signing.store.file" => ENV["KEYSTORE_PATH"],
"android.injected.signing.store.password" => ENV["KEYSTORE_PASSWORD"],
"android.injected.signing.key.alias" => ENV["KEYSTORE_ALIAS"],
"android.injected.signing.key.password" => ENV["PRIVATE_KEY_PASSWORD"],
}
)
bundletool(
ks_path: ENV["KEYSTORE_PATH"],
ks_password: ENV["KEYSTORE_PASSWORD"],
ks_key_alias: ENV["KEYSTORE_ALIAS"],
ks_key_alias_password: ENV["PRIVATE_KEY_PASSWORD"],
bundletool_version: "1.2.0",
aab_path: "./app/build/outputs/bundle/daily/app-daily.aab",
apk_output_path: "./app/build/outputs/bundle/daily/app-daily.apk",
verbose: true
)
firebase_app_distribution(
app: "1:746097776372:android:----",
apk_path: "./app/build/outputs/bundle/daily/app-daily.apk",
service_credentials_file: ENV["KEY_PATH"],
groups: "testers"
)
end
end
`./Appfile`
json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("") # e.g. com.krausefx.app
fastlane gems
Gem | Version | Update-Status |
---|---|---|
fastlane | 2.206.2 |
Loaded fastlane plugins:
Plugin | Version | Update-Status |
---|---|---|
fastlane-plugin-bundletool | 1.0.6 | |
fastlane-plugin-firebase_app_distribution | 0.3.4 |
Loaded gems
Gem | Version |
---|---|
did_you_mean | 1.6.1 |
atomos | 0.1.3 |
claide | 1.1.0 |
colored2 | 3.1.2 |
nanaimo | 0.3.0 |
rexml | 3.2.5 |
xcodeproj | 1.21.0 |
rouge | 2.0.7 |
xcpretty | 0.3.0 |
terminal-notifier | 2.0.0 |
unicode-display_width | 1.8.0 |
terminal-table | 1.8.0 |
plist | 3.6.0 |
public_suffix | 4.0.7 |
addressable | 2.8.0 |
multipart-post | 2.0.0 |
word_wrap | 1.0.0 |
optparse | 0.1.1 |
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.92.3 |
faraday-em_http | 1.0.0 |
faraday-em_synchrony | 1.0.0 |
faraday-excon | 1.1.0 |
faraday-httpclient | 1.0.1 |
faraday-multipart | 1.0.4 |
faraday-net_http | 1.0.1 |
faraday-net_http_persistent | 1.2.0 |
faraday-patron | 1.0.0 |
faraday-rack | 1.0.0 |
faraday-retry | 1.0.3 |
ruby2_keywords | 0.0.5 |
faraday | 1.10.0 |
unf_ext | 0.0.8.2 |
unf | 0.1.4 |
domain_name | 0.5.20190701 |
http-cookie | 1.0.5 |
faraday-cookie_jar | 0.0.7 |
faraday_middleware | 1.2.0 |
fastimage | 2.2.6 |
gh_inspector | 1.1.3 |
mini_magick | 4.11.0 |
naturally | 2.2.1 |
rubyzip | 2.3.2 |
security | 0.1.3 |
xcpretty-travis-formatter | 1.0.1 |
dotenv | 2.7.6 |
bundler | 2.3.15 |
simctl | 1.6.8 |
jwt | 2.4.1 |
uber | 0.1.0 |
declarative | 0.0.20 |
trailblazer-option | 0.1.2 |
representable | 3.2.0 |
retriable | 3.1.2 |
mini_mime | 1.1.2 |
memoist | 0.16.2 |
multi_json | 1.15.0 |
os | 1.1.4 |
signet | 0.16.1 |
googleauth | 1.1.3 |
httpclient | 2.8.3 |
google-apis-core | 0.5.0 |
google-apis-playcustomapp_v1 | 0.7.0 |
google-apis-androidpublisher_v3 | 0.21.0 |
google-cloud-env | 1.6.0 |
google-cloud-errors | 1.2.0 |
google-cloud-core | 1.6.0 |
google-apis-iamcredentials_v1 | 0.10.0 |
google-apis-storage_v1 | 0.14.0 |
digest-crc | 0.6.4 |
google-cloud-storage | 1.36.2 |
emoji_regex | 3.2.3 |
jmespath | 1.6.1 |
aws-partitions | 1.597.0 |
aws-eventstream | 1.2.0 |
aws-sigv4 | 1.5.0 |
aws-sdk-core | 3.131.1 |
aws-sdk-kms | 1.57.0 |
aws-sdk-s3 | 1.114.0 |
CFPropertyList | 3.0.5 |
json | 2.6.2 |
webrick | 1.7.0 |
rake | 13.0.6 |
forwardable | 1.3.2 |
logger | 1.3.0 |
date | 3.2.2 |
stringio | 0.0.2 |
openssl | 2.1.2 |
ipaddr | 1.2.4 |
zlib | 1.0.0 |
mutex_m | 0.1.0 |
ostruct | 0.1.0 |
strscan | 1.0.0 |
io-console | 0.5.11 |
fileutils | 1.6.0 |
libxml-ruby | 3.2.3 |
psych | 3.1.0 |
fastlane-plugin-bundletool | 1.0.6 |
fastlane-plugin-firebase_app_distribution | 0.3.4 |
generated on: 2022-06-08
Just go to build setting setting and change Build system from gradle to internal. it will resolve your error.
I can build on my local machine, but I'm having trouble building on Bitrise. I'm not sure where I should make changes.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest fastlane
version and check if that solves the issue. Let us know if that works for you by adding a comment
Friendly reminder: contributions are always welcome! Check out CONTRIBUTING.md for more information on how to help with fastlane
and feel free to tackle this issue yourself
This issue will be auto-closed if there is no reply within 1 month.