Integration of code into ODK collect codebase and compile apk

Hello,

I am developing a work around/solution to distribute user specific data in CSV files (as preload).
I managed to develop POC as an individual app.
Where based on user login and access data is fetched from postgres database (PHP on server), downloads the CSV file in android app project folder.

Now I would like to integrate the code into odk collect codebase and compile APK.
I am facing with lot of errors while running app "Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':collect_app:debugCompileClasspath'."

Any help? I am ready to share the entire code.
my idea in future is to create simple UI form where I can see the ODK form ID, user ID from central, further I write SQL to fetch data from specific tables and export as CSV.
based on above configuration, login/fetch data button part of ODK collect app will read and fetch data from server to local folder of app.

note: I am not a core developer but have some hands on experience in hybrid apps.