24 Sept - 15:00 - Building Custom Mobile Apps with the DHIS2 Android SDK Q&A

Hi Marcos,

I tried the following 2 steps without success:

Step 1. Included in the application build.gradle file (android\app\build.gradle):

dependencies {
implementation “org.hisp.dhis:android-core:1.2.1”
}

Step 2. Added the maven line in the root build.gradle file (androd\build.gradle):

allprojects {
repositories {
google()
jcenter()
maven { url ‘https://jitpack.io’ }
}
}

Message received:
/*
FAILURE: Build failed with an exception.

What went wrong:
Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.
Could not resolve all task dependencies for configuration ‘:app:debugCompileClasspath’.
Could not find org.hisp.dhis.parser:dhis-antlr-expression-parser:1.0.7-SNAPSHOT.
Required by:
project :app > org.hisp.dhis:android-core:1.2.1

*/

Any idea? For now I am just testing.

Best regards