Skip to content

Importing to Android Studio

mohamad-amin edited this page Aug 1, 2015 · 22 revisions
  1. Download the project as a zip file and extract it on your computer.
  2. In Android Studio, Open File -> New -> New Module.
  3. In the newly opened window under the More Modules click Import Existing Project and set the Source Directory as the directory that you extracted the downloaded zip and click finish.
  4. Open your build.gradle file in the app module and add this line to your dependencies:
compile project(':persianmaterialdatetimepicker')

So now your build.gradle should look like this:

dependencies {
    ... other dependencies
    compile project(':materialDateTimePicker')
}
  1. Sync Gradle with your project and its done! you can now use the library within your project.
Clone this wiki locally