# Help Needed: Build Issues in Legacy DHIS2 Android Capture App (v2.9) - Missing Dependency

**URL:** <https://community.dhis2.org/t/help-needed-build-issues-in-legacy-dhis2-android-capture-app-v2-9-missing-dependency/64372>\
**Category:** Support - Assistance technique\
**Tags:** android\
**Created:** [7 April 2025 10:46 UTC](https://community.dhis2.org/t/help-needed-build-issues-in-legacy-dhis2-android-capture-app-v2-9-missing-dependency/64372 "2025-04-07T10:46:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohd\_Nawaz](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/mohd_nawaz/32/45368_2.png) [@Mohd\_Nawaz](https://community.dhis2.org/u/Mohd_Nawaz)\
**Post date:** [7 April 2025 10:46 UTC](https://community.dhis2.org/t/help-needed-build-issues-in-legacy-dhis2-android-capture-app-v2-9-missing-dependency/64372/1 "2025-04-07T10:46:54Z")

</div>

Hi everyone 👋,

I’m new to the DHIS2 Android ecosystem and recently started maintaining an existing **DHIS2-based Android app** that was previously developed by someone else. The app is based on the **DHIS2 Android Capture App v2.9**.

We encountered a **bug in the app** , and I need to rebuild it to start debugging. However, when I try to build the project, I’m facing the following issue:

Could not resolve all files for configuration ‘:commons:debugCompileClasspath’.

> Could not find de.adorsys.android:securestoragelibrary:1.2.2.  
> Searched in the following locations:  
> - [https://repo.maven.apache.org/maven2/de/adorsys/android/securestoragelibrary/1.2.2/](https://repo.maven.apache.org/maven2/de/adorsys/android/securestoragelibrary/1.2.2/)

It seems like the dependency `de.adorsys.android:securestoragelibrary:1.2.2` is no longer available in the default Maven Central repo.

### 💡 My Environment:

- **Android Studio** : (latest / specify your version)
- **DHIS2 Capture App version** : 2.9
- **Gradle version** : (you can find this in `gradle-wrapper.properties`)
- **Working on** : A legacy project previously developed by someone else
- **Goal** : Rebuild and debug the app to resolve an existing bug

### 🔍 What I’ve Tried:

- Checked Maven Central manually — the version `1.2.2` is missing.
- Looked into older forks and tried syncing with different repositories.
- Couldn’t find a replacement or a working mirror for that specific version.

### 🙏 Request:

If anyone from the community has:

1. A **mirror** or **working repository** URL for `secur ![Screenshot (17)|1000x562](upload://onTps8yXwh7pcQceUPCH15Rhto4.png) estoragelibrary:1.2.2`
2. Faced and fixed a **similar issue**
3. Suggestions on replacing this dependency with an alternative or updated library

I’d deeply appreciate your help!

Thanks in advance!  
Mohd Nawaz  
Android Developer at HSIP India

---

<div class="post-metadata">

**Author:** ![Mohd\_Nawaz](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/mohd_nawaz/32/45368_2.png) [@Mohd\_Nawaz](https://community.dhis2.org/u/Mohd_Nawaz)\
**Post date:** [7 April 2025 10:48 UTC](https://community.dhis2.org/t/help-needed-build-issues-in-legacy-dhis2-android-capture-app-v2-9-missing-dependency/64372/2 "2025-04-07T10:48:00Z")

</div>

@Xavi  
Build Output:

- org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ‘:commons:debugCompileClasspath’.

- org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find de.adorsys.android:securestoragelibrary:1.2.2.

Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find de.adorsys.android:securestoragelibrary:1.2.2.

Could not find de.adorsys.android:securestoragelibrary:1.2.2.  
Required by:  
project :commons

---

<div class="post-metadata">

**Author:** ![FerdyR](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/ferdyr/32/43943_2.png) [@FerdyR](https://community.dhis2.org/u/FerdyR)\
**Post date:** [7 April 2025 11:37 UTC](https://community.dhis2.org/t/help-needed-build-issues-in-legacy-dhis2-android-capture-app-v2-9-missing-dependency/64372/3 "2025-04-07T11:37:14Z")

</div>

Hi @Mohd_Nawaz,

That dependency was removed from the project because it is no longer maintained by the developer and was never migrated to Maven Central. You have two options to fix this:

1. Use `jcenter()` to search for and resolve the dependency.
2. Remove/Replace the dependency and modify the `PreferenceProvider` class where it is being used.

If you choose the first option, ensure your project’s _build.gradle_ file includes the JCenter repository and explicitly allows the module:

```auto
allprojects {
    [...]

    repositories {
        google()
        
        jcenter() {
            content {
                includeModule('de.adorsys.android', 'securestoragelibrary')
            }
        }

        [...]
    }
}

```

This configuration should allow Gradle to search for the dependency in JCenter.

However, we recommend removing the library from the project or finding a suitable replacement, as it’s no longer maintained. Since the library is only used in the `PreferenceProvider` class, it should be relatively straightforward to remove or replace.

If you need further assistance, let us know.

Cheers.

---

<div class="post-metadata">

**Author:** ![Mohd\_Nawaz](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/mohd_nawaz/32/45368_2.png) [@Mohd\_Nawaz](https://community.dhis2.org/u/Mohd_Nawaz)\
**Post date:** [8 April 2025 06:20 UTC](https://community.dhis2.org/t/help-needed-build-issues-in-legacy-dhis2-android-capture-app-v2-9-missing-dependency/64372/4 "2025-04-08T06:20:31Z")

</div>

Hi @FerdyR  
I tried with `jcenter()` as well as recommend approach but got Errors.  
I’m attaching the Screenshot of the error that I got with `jcenter()`  
Possible causes:  
**Your project may be using a version of the Android Gradle plug-in that does not contain the method (e.g. ‘testCompile’ was added in 1.1.0)**.

**What I’ve Tried:**  
I tried to Upgrade plugin to version 8.2.2 but that is also not working.

 ![Screenshot (18)](https://dhis2.b-cdn.net/uploads/default/original/3X/0/0/000f81fb775dea2dbd920086cd041410e3425b68.png)

---

<div class="post-metadata">

**Author:** ![FerdyR](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/ferdyr/32/43943_2.png) [@FerdyR](https://community.dhis2.org/u/FerdyR)\
**Post date:** [11 April 2025 11:27 UTC](https://community.dhis2.org/t/help-needed-build-issues-in-legacy-dhis2-android-capture-app-v2-9-missing-dependency/64372/5 "2025-04-11T11:27:08Z")

</div>

Hi @Mohd_Nawaz, sorry for the late reply. Are you still having the issue? If so, I would recommend to remove the dependency from the project. It’s fairly easy to do it.

Regards,
