【问题标题】:How to include project on git into new android project如何将 git 上的项目包含到新的 android 项目中
【发布时间】:2015-08-14 05:17:31
【问题描述】:

如何将现有项目包含到我的 android 应用程序中。 以下是我要使用的:

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

【问题讨论】:

    标签: android git


    【解决方案1】:

    您应该能够将您的项目添加为您的 android 应用程序存储库的子模块。
    例如见this question:

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

    文件结构:

    ProjectName
        app
        dhis2-android-sdk
    

    【讨论】:

    • 嘿,Vonc,你能告诉我一步一步吗,因为我是这里的新手。
    • @Sourabh 你有一个C:\Users\USER\AndroidStudioProjects\ProjectName 这是一个git repo吗?
    • 是的,我发现接下来该做什么
    • 我正在尝试添加 git 命令:git submodule add github.com/dhis2/dhis2-android-sdk under : C:\Users\USER\AndroidStudioProjects\ProjectName 但我收到以下错误:'git' is not an internal or外部命令。
    • @Sourabh "git' is not an internal or external command" 表示你的环境变量路径没有设置或者你没有安装git
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-03
    • 1970-01-01
    • 2013-06-06
    • 1970-01-01
    • 2015-01-31
    • 2012-08-06
    相关资源
    最近更新 更多