I build and added this library with demo on github. Now, I am trying to import it on other project.
Following are my gradle files that are not compiling.
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
    }
}
allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}
and
apply plugin: 'com.android.application'
android {
  compileSdkVersion 28
  defaultConfig {
    applicationId "com.mayank.myapplication"
    minSdkVersion 16
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }
}
dependencies {
  implementation fileTree(dir: 'libs', include: ['*.jar'])
  implementation 'com.github.mayank1513:SP_DrawerLayout:1.0'
  testImplementation 'junit:junit:4.12'
  androidTestImplementation 'com.android.support.test:runner:1.0.2'
  androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
I looked at following answers
- Error:(23, 20) Failed to resolve: com.github.chrisbanes:PhotoView:2.1 
- Android Studio Failed to resolve:com.github.PhilJay:MPAndroidChart:v2.1.3 
I am not able to resolve the issue still. Gradle Sync fails with error
Failed to resolve: com.github
