How to build the android apk from the command line?

  1. First install Docker (instructions vary, depend on your platform)

  2. Clone the android repo and remove the ‘wear’ from settings.gradle:

git clone
cd Mycroft-Android
  1. Modify settings.gradle by removing the ‘wear’ part (If someone knows how to keep it and make things work, let me know)
include ':mobile', ':shared'
  1. Create the apk:
docker run -it -v $(pwd):/home/user/project -w /home/user/project -u $(id -u):$(id -g) wizbii/android-sdk bash -c 'cd /home/user/project/ && ./gradlew assembleDebug'

And the output with the error:

To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/user/project/mobile/build.gradle' line: 81

* What went wrong:
A problem occurred evaluating project ':mobile'.
> Project with path ':wear' could not be found in project ':mobile'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


Total time: 6.953 secs