Comments (11)
I am also Having a similar issue
[05:47:38]: It seems like you wanted to load some plugins, however they couldn't be loaded
[05:47:38]: Please follow the troubleshooting guide: https://docs.fastlane.tools/plugins/plugins-troubleshooting/
+---------------+-------+
| Lane Context |
+---------------+-------+
| PLATFORM_NAME | |
| LANE_NAME | build |
+---------------+-------+
[05:47:38]: Could not find action, lane or variable 'increment_version_code'. Check out the documentation for more details: https://docs.fastlane.tools/actions
[05:47:38]: fastlane finished with errors
[!] Could not find action, lane or variable 'increment_version_code'. Check out the documentation for more details: https://docs.fastlane.tools/actions
Pluginfile
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!
gem 'fastlane-plugin-increment_version_code'
gem 'fastlane-plugin-appicon'
gem 'fastlane-plugin-android_versioning'
gem 'fastlane-plugin-firebase_app_distribution', '0.2.2.pre.1'
gem 'fastlane-plugin-badge'
gem 'fastlane-plugin-versioning'
gem 'fastlane-plugin-versioning_android'
Gemfile
source "https://rubygems.org"
gem "fastlane"
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
from docker-android-build-box.
Have you done bundle install
before build?
Checkout sample project for basic fastlane setup.
Build sample project with flastlane:
docker run \
--rm \
-v `pwd`:/project mingc/android-build-box \
bash -c 'cd /project; fastlane build'
You can play fastlane setup with this sample project to troubleshooting your issue.
from docker-android-build-box.
@mingchen This is my .yaml
config
.android:
image: mingc/android-build-box:latest
artifacts:
paths:
- fastlane/logs
before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- bundle install
cache:
paths:
- .gradle/wrapper
- .gradle/caches
build:android:
extends: .android
stage: build
interruptible: true
artifacts:
paths:
- android/app/build/outputs/apk/release
script:
- fastlane build platform:android
only:
- master
- develop
- merge_requests
from docker-android-build-box.
Since you install your plugins with bundle install, try to replace your fast lane command with bundle exec:
bundle exec fastlane build ...
from docker-android-build-box.
@mingchen Getting the same Errors.
fastlane/Fastfile
import '../android/fastlane/Fastfile'
import '../ios/fastlane/Fastfile'
lane :build do |options|
if options[:platform] == 'android'
android_prepare_build
else
ios_prepare_build
end
end
android/fastlane/Fastfile
private_lane :android_prepare_build do |options|
platform :android do
android_increment_build_number
android_image_assets
gradle(task: 'assembleRelease', project_dir: 'android')
end
end
.gitlab-ci.yaml
.android:
image: mingc/android-build-box:latest
artifacts:
paths:
- fastlane/logs
before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- bundle install
cache:
paths:
- .gradle/wrapper
- .gradle/caches
build:android:
extends: .android
stage: build
interruptible: true
artifacts:
paths:
- android/app/build/outputs/apk/release
script:
- bundle exec fastlane build platform:android
only:
- master
- develop
- merge_requests
output
Running with gitlab-runner 13.4.1 (e95f89a0)
on docker-auto-scale 72989761
Preparing the "docker+machine" executor
Using Docker executor with image mingc/android-build-box:latest ...
Pulling docker image mingc/android-build-box:latest ...
Using docker image sha256:8e3c3a57933c80aa603217f083dec220d3d2c7a1f3d7641bc3d5c3f15cd2d75e for mingc/android-build-box:latest with digest mingc/android-build-box@sha256:b7af5fed54737006d4d1a250f6fa394514f7f9f78f432d712052e8ebbd8fa73a ...
Preparing environment
Running on runner-72989761-project-21022044-concurrent-0 via runner-72989761-srm-1601633837-af3c389e...
Getting source from Git repository
00:03
$ eval "$CI_PRE_CLONE_SCRIPT"
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/companyname/frontend/appname-app/.git/
Created fresh repository.
Checking out 55bfe927 as refs/merge-requests/1/head...
Skipping Git submodules setup
Restoring cache
00:02
Checking cache for default...
FATAL: file does not exist
Failed to extract cache
Downloading artifacts
Downloading artifacts for lint (769541423)...
Downloading artifacts from coordinator... ok id=769541423 responseStatus=200 OK token=G3RmMQMZ
Downloading artifacts for test (769541425)...
Downloading artifacts from coordinator... ok id=769541425 responseStatus=200 OK token=VXxY1amj
Executing "step_script" stage of the job script
$ export GRADLE_USER_HOME=$(pwd)/.gradle
$ bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Using rake 13.0.1
Using CFPropertyList 3.0.2
Using public_suffix 4.0.6
Using addressable 2.7.0
Using atomos 0.1.3
Using aws-eventstream 1.1.0
Using aws-partitions 1.378.0
Using aws-sigv4 1.2.2
Using jmespath 1.4.0
Using aws-sdk-core 3.109.0
Using aws-sdk-kms 1.39.0
Using aws-sdk-s3 1.82.0
Using babosa 1.0.3
Using bundler 2.1.4
Using claide 1.0.3
Using colored 1.2
Using colored2 3.1.2
Using highline 1.7.10
Using commander-fastlane 4.4.6
Using declarative 0.0.20
Using declarative-option 0.1.0
Using digest-crc 0.6.1
Using unf_ext 0.0.7.7
Using unf 0.1.4
Using domain_name 0.5.20190701
Using dotenv 2.7.6
Using emoji_regex 3.0.0
Using excon 0.76.0
Using multipart-post 2.0.0
Using faraday 1.0.1
Using http-cookie 1.0.3
Using faraday-cookie_jar 0.0.7
Using faraday_middleware 1.0.0
Using fastimage 2.2.0
Using gh_inspector 1.1.3
Using jwt 2.2.2
Using memoist 0.16.2
Using multi_json 1.15.0
Using os 1.1.1
Using signet 0.14.0
Using googleauth 0.13.1
Using httpclient 2.8.3
Using mini_mime 1.0.2
Using uber 0.1.0
Using representable 3.0.4
Using retriable 3.1.2
Using google-api-client 0.38.0
Using google-cloud-env 1.3.3
Using google-cloud-errors 1.0.1
Using google-cloud-core 1.5.0
Using google-cloud-storage 1.29.0
Using json 2.3.1
Using mini_magick 4.10.1
Using plist 3.5.0
Using rubyzip 2.3.0
Using security 0.1.3
Using naturally 2.2.0
Using simctl 1.6.8
Using slack-notifier 2.3.2
Using terminal-notifier 2.0.0
Using unicode-display_width 1.7.0
Using terminal-table 1.8.0
Using tty-screen 0.8.1
Using tty-cursor 0.7.1
Using tty-spinner 0.9.3
Using word_wrap 1.0.0
Using nanaimo 0.3.0
Using xcodeproj 1.18.0
Using rouge 2.0.7
Using xcpretty 0.3.0
Using xcpretty-travis-formatter 1.0.0
Using fastlane 2.162.0
Bundle complete! 2 Gemfile dependencies, 72 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
$ bundle exec fastlane build platform:android
[03:23:42]: It seems like you wanted to load some plugins, however they couldn't be loaded
[03:23:42]: Please follow the troubleshooting guide: https://docs.fastlane.tools/plugins/plugins-troubleshooting/
[03:23:42]: Sending anonymous analytics information
[03:23:42]: Learn more at https://docs.fastlane.tools/#metrics
[03:23:42]: No personal or sensitive data is sent.
[03:23:42]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
[03:23:42]: Driving the lane 'build' 🚀
[03:23:42]: --------------------------------------------------
[03:23:42]: --- Step: Switch to android_prepare_build lane ---
[03:23:42]: --------------------------------------------------
[03:23:42]: Cruising over to lane 'android_prepare_build' 🚖
[03:23:42]: -----------------------------------------------------------
[03:23:42]: --- Step: Switch to android_increment_build_number lane ---
[03:23:42]: -----------------------------------------------------------
[03:23:42]: Cruising over to lane 'android_increment_build_number' 🚖
+---------------+-------+
| Lane Context |
+---------------+-------+
| PLATFORM_NAME | |
| LANE_NAME | build |
+---------------+-------+
[03:23:42]: Could not find action, lane or variable 'increment_version_code'. Check out the documentation for more details: https://docs.fastlane.tools/actions
+------+-----------------------------------------------+-------------+
| fastlane summary |
+------+-----------------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+-----------------------------------------------+-------------+
| 1 | Switch to android_prepare_build lane | 0 |
| 2 | Switch to android_increment_build_number lane | 0 |
+------+-----------------------------------------------+-------------+
[03:23:42]: fastlane finished with errors
[!] Could not find action, lane or variable 'increment_version_code'. Check out the documentation for more details: https://docs.fastlane.tools/actions
Cleaning up file based variables
00:00
ERROR: Job failed: exit code 1
from docker-android-build-box.
Forgot to install plugins?
fastlane install_plugins
ref: https://docs.fastlane.tools/plugins/using-plugins/
from docker-android-build-box.
@mingchen Thank you that did allow me to progress but progress to a different issue that i wonder if you have experienced before. See this ticket i have raised for more info > fastlane/fastlane#17376
from docker-android-build-box.
Have you try to replace with bundle exec?
bundle exec fastlane install_plugins ...
from docker-android-build-box.
@mingchen Yes i have tried that.
from docker-android-build-box.
closed due to inactive.
from docker-android-build-box.
Does running bundle install
on our CI required when using this image? I'm curious as bundle install --quitely
is already exist in Dockerfile
. Doing the former means, adding a build time to our CI (calling bundle install
)
from docker-android-build-box.
Related Issues (20)
- docker build -t android-sdk . run very slow HOT 7
- platform-tools/api/api-versions.xml java.io.IOException: Stream closed HOT 2
- mount failed HOT 2
- Include ARG for Dart Version HOT 1
- Firebase app distribution? HOT 1
- jenv command of 1.25.0 version on Bitbucket doesn't work HOT 3
- Fixed Flutter versions HOT 3
- Any plan to support java 19 and newer versions ? HOT 1
- f-droid build from source tutorial HOT 6
- docker buildx build failed on mac m2 HOT 7
- Flutter Version is Old HOT 8
- SDK 34 HOT 2
- Use non-root uid/gid in container HOT 4
- bash: line 1: ./gradlew: No such file or directory HOT 1
- flutter version 3.16.9 HOT 3
- CI: Docker Build & Push Step does not Use Tagged Version
- Should Build Tools be Trimmed? HOT 1
- Dockerhub tags 1.26.0 and 1.27.0 Claimed Software does not Match Defined HOT 2
- NDK is not installed HOT 2
- can not pull in M2 slicon chip HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-android-build-box.