如何在我的项目中包含 GitHub 库 (Android Studio)
How to include GitHut library in my project (Android Studio)
我正在尝试将此 library 添加到我的项目中,因为我想更改那里的 class 中的某些内容。这就是为什么我将它作为依赖项添加到我的 gradile 设置中是不够的。
我知道图书馆里写着"If you want use this library, you only have to download MaterialDesign project, import it into your workspace and add the project as a library in your android project settings."。但这意味着什么,我应该复制所有文件并将它们放在我的 libs 文件夹中吗?
If you want use this library, you only have to download MaterialDesign project, import it into your workspace and add the project as a library in your android project settings.
第 1 步:下载项目,无论是通过 GitHub 提供的 ZIP 文件还是使用 git
克隆存储库
步骤 #2:将 MaterialDesign/
目录移动到您的项目目录中,作为现有 app/
模块
的对等目录
第 3 步:修改项目目录中的 settings.gradle
,将 :MaterialDesign
包含在要构建的模块列表中
第 4 步:在您的 app
模块的 build.gradle
文件中,将 compile project(':MaterialDesign')
添加到您的 dependencies
我正在尝试将此 library 添加到我的项目中,因为我想更改那里的 class 中的某些内容。这就是为什么我将它作为依赖项添加到我的 gradile 设置中是不够的。
我知道图书馆里写着"If you want use this library, you only have to download MaterialDesign project, import it into your workspace and add the project as a library in your android project settings."。但这意味着什么,我应该复制所有文件并将它们放在我的 libs 文件夹中吗?
If you want use this library, you only have to download MaterialDesign project, import it into your workspace and add the project as a library in your android project settings.
第 1 步:下载项目,无论是通过 GitHub 提供的 ZIP 文件还是使用 git
克隆存储库
步骤 #2:将 MaterialDesign/
目录移动到您的项目目录中,作为现有 app/
模块
第 3 步:修改项目目录中的 settings.gradle
,将 :MaterialDesign
包含在要构建的模块列表中
第 4 步:在您的 app
模块的 build.gradle
文件中,将 compile project(':MaterialDesign')
添加到您的 dependencies