Skip to content

Instantly share code, notes, and snippets.

@mhd-zulqarnain
Created August 22, 2019 18:29
Show Gist options
  • Save mhd-zulqarnain/c9073d959d15bdc2aff365bd53a71221 to your computer and use it in GitHub Desktop.
Save mhd-zulqarnain/c9073d959d15bdc2aff365bd53a71221 to your computer and use it in GitHub Desktop.
circle.ci Android version 28 config.yml file configuration
version: 2
jobs:
build:
working_directory: ~/ProjectName
docker:
- image: circleci/android:api-28-alpha
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Download Dependencies
command: |
sudo chmod +x gradlew
./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Create build
command: ./gradlew assembleDebug --console=plain
- store_artifacts:
path: app/build/outputs
destination: apk
# if this error pop up 'What went wrong: A problem occurred configuring project ':app'. > The SDK directory'
# remove localproperties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment