hoang8f / android-flat-button

FButton - a flat button library for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath':Could not resolve com.github.jd-alexander:android-flat-button:v1.1.

Jsamouil opened this issue · comments

here is my build.appapply plugin: 'com.android.application'

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.example.fastfoodv2"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
testImplementation 'junit:junit:4.13'
implementation 'androidx.test.ext:junit:1.1.2-alpha03'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-alpha03'
implementation 'com.google.firebase:firebase-analytics:17.2.2'

//Libraries
implementation 'com.google.firebase:firebase-core:17.2.2'
implementation 'com.google.firebase:firebase-database:19.2.0'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.android.support:support-annotations:28.0.0'
implementation 'com.github.jd-alexander:android-flat-button:v1.1'

}

apply plugin: 'com.google.gms.google-services'

and my build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.

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

    maven { url 'https://maven.google.com/'
            name 'Google'
    }
}


dependencies {
    classpath 'com.android.tools.build:gradle:3.5.3'
    classpath 'com.google.gms:google-services:4.3.2'
    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'





    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

allprojects {
repositories {
google()
maven { url 'https:/jitpac.io' }
jcenter()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
name 'Google'

        //task clean(type: Delete) {
        //delete rootProject.buildDir
        // }
    }

    maven {
        url 'https://maven.google.com/'
        name 'Google'
    }
}

}
apply plugin: 'android-reporting'

i try everything and again libray dosent work