Cannot resolve PersianMaterialDateTimePicker

536 views Asked by At

When I tried to implement the PersianMaterialDateTimePicker in Android it showed me the multidate class not found.

I used below code,

dependencies {
    compile 'com.mohamadamin:persianmaterialdatetimepicker:1.2.1'
}

How to can I solve this problem?

I checked this library and I don't found any things like multidate.*.

2

There are 2 answers

6
Milad Bahmanabadi On

I added this repositories in my allprojects

  mavenCentral()
        google()
        maven {
            url 'https://jitpack.io'
        }
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
        jcenter()

it solved my problem, Hope to Help you

0
kiumars gilanizadeh On

solved my problem by :

1- open build.gradle

dependencies {
    implementation 'com.mohamadamin:persianmaterialdatetimepicker:1.2.1'
}

2- add jcenter() to settings.gradle

 dependencyResolutionManagement {
        repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
        repositories {
            google()
            mavenCentral()
            maven { url "https://jitpack.io" }
            jcenter()
        }
    }