2

How I can include existing project into my android app. following is the one i want to use:

https://github.com/dhis2/dhis2-android-sdk

1 Answer 1

1

You should be able to add your project as a submodule of your android app repo.
See for instance this question:

cd C:\Users\USER\AndroidStudioProjects\ProjectName
git submodule add https://github.com/dhis2/dhis2-android-sdk

file structure:

ProjectName
    app
    dhis2-android-sdk
Sign up to request clarification or add additional context in comments.

6 Comments

hey Vonc can you please tell me step by step as i am a newbie here.
@Sourabh do you have a C:\Users\USER\AndroidStudioProjects\ProjectName which is a git repo?
Yes i have found that what next to do
I am trying to add the git command: git submodule add github.com/dhis2/dhis2-android-sdk under : C:\Users\USER\AndroidStudioProjects\ProjectName but i got this following error:'git' is not an internal or external command.
@Sourabh "git' is not an internal or external command" means that your environment variable path is not set or you donot have git installed
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.