# Fetch source
git clone https://github.com/AndBible/and-bible.git
cd and-bible
# Run Android SDK container
docker run --rm --user root -v $(pwd):/usr/src/and-bible -it runmymind/docker-android-sdk:alpine-standalone /bin/sh
# Add extra dependencies required for development
apk add git npm
# Set permissions to the android user:group
chown -R android:android /usr/src/and-bible
# Switch to android user
su - android
# Navigate to the source directory
cd /usr/src/and-bible
# Set environment variable
export ANDROID_SDK_ROOT="/opt/android-sdk-linux"
# Compile a debug image
./gradlew assembleDebug
Reference(s):
Originally posted as a comment, (See: https://github.com/AndBible/and-bible/pull/2091#issuecomment-1037382934).