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
}
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'
}
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' }
}
allprojects { repositories { google() maven { url 'https:/jitpac.io' } jcenter() maven { url "https://oss.sonatype.org/content/repositories/snapshots" name 'Google'
} apply plugin: 'android-reporting'
i try everything and again libray dosent work