-
First install Docker (instructions vary, depend on your platform)
-
Clone the android repo and remove the ‘wear’ from settings.gradle:
git clone git@github.com:MycroftAI/Mycroft-Android.git
cd Mycroft-Android
- 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'
- 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: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html.
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.
BUILD FAILED
Total time: 6.953 secs