Skip to content

How to build the DHIS2 Android APK

Pablo edited this page Oct 5, 2020 · 1 revision

How to

In order to run this project in Android Studio. Please follow use:

  • Clone the project: git clone --recurse-submodules https://github.com/dhis2/dhis2-android-capture-app.git
  • In the app build.gradle file:

Comment implementation project(":core") and implementation project(":dhis2-rule-engine") and un-comment implementation("org.hisp.dhis:android-core:${libraries.dhis2sdk}") { exclude group: "org.hisp.dhis", module: "core-rules" } and implementation "org.hisp.dhis.rules:rule-engine:${libraries.ruleEngine} to use the release versions of these modules. Or target the master branches from the submodules. For the rule engine, you may need to add a custom build.gradle to support it.

Note: Development branches could be using the sdk or rule engine as a module, they usually target develop/development branches for these modules.