How to find the path or .apk for Android Builds

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:

  1. SSH into your build
  2. 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/

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.