Overview
There may be occasions where you need to find your .apk file specifically, or the location of the file for building purposes.
Solution
To find the path for your Android build, you can use the following as an example:
jobs:
example:
docker:
- cimg/base:current
steps:
- run: echo "foo" > bar.txt
# should print "foo"
- run: cat /home/circleci/project/bar.txt
If you need to locate the .apk file:
- SSH into your build
- In the step after your .apk is generated, add a
sudo find / -name {{file name}}.apk
to locate the requested file.
Additional Resources
Android Overview: https://circleci.com/docs/android-machine-image/#overview
Deploying Android Applications on CircleCI: https://circleci.com/docs/deploy-android-applications/
Comments
Article is closed for comments.