I'm trying to use com.github.navasmdc:MaterialDesign:1.5
but it gives me an error saying :
Could not resolve com.github.navasmdc:MaterialDesign:1.5.
Required by:
project :app
> Could not resolve com.github.navasmdc:MaterialDesign:1.5.
> Could not get resource 'https://jitpack.io/com/github/navasmdc/MaterialDesign/1.5/MaterialDesign-1.5.pom'.
> Could not GET 'https://jitpack.io/com/github/navasmdc/MaterialDesign/1.5/MaterialDesign-1.5.pom'. Received status code 401 from server: Unauthorized
This is what I have in build.gradle
:
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "28.0.3"
defaultConfig {
minSdkVersion 15
targetSdkVersion 29
versionCode 21
versionName "1.0.4.1"
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath false
}
}
}
flavorDimensions "pro"
productFlavors {
pro {
applicationId = "com.javiersantos.mlmanagerpro"
}
}
flavorDimensions "basic"
productFlavors {
basic {
applicationId = "com.javiersantos.mlmanager"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
versionNameSuffix '-debug'
}
}
lintOptions {
disable 'MissingTranslation'
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
repositories {
mavenCentral()
maven { url 'http://guardian.github.com/maven/repo-releases' }
maven {
url "https://maven.google.com"
}
maven { url "https://jitpack.io" }
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'commons-io:commons-io:2.4'
// implementation group: 'com.github.navasmdc', name: 'MaterialDesign', version: '1.5'
implementation 'com.getbase:floatingactionbutton:1.10.1'
implementation('com.github.afollestad.material-dialogs:core:0.8.5.3@aar') { transitive = true; }
implementation('com.github.afollestad.material-dialogs:commons:0.8.5.3@aar') {
transitive = true;
}
implementation 'com.github.yukuku:ambilwarna:2.0.1'
implementation 'com.pnikosis:materialish-progress:1.7'
implementation 'xyz.danoz:recyclerviewfastscroller:0.1.3'
implementation 'com.yalantis:phoenix:1.2.2'
implementation('com.mikepenz:materialdrawer:4.6.1@aar') { transitive = true; }
implementation 'com.mikepenz:google-material-typeface:1.2.0.1@aar'
implementation('net.rdrei.android.dirchooser:library:3.0@aar') { transitive = true; }
implementation('com.mikepenz:aboutlibraries:5.2.1@aar') { transitive = true; }
annotationProcessor 'com.google.auto.value:auto-value:1.5.2'
implementation 'com.github.navasmdc:MaterialDesign:1.5@aar'
}
Why should I get authorized for using a library?
Note: I have tried putting jcenter()
and google()
too.
ping jitpack.io
is too low (450ms). Can it happen because of that?