Unable to reduce APK size - android

I am trying to reduce APK size by enabling minifyEnabled true and shrinkResources true in Gradle file and after enabling when I am building APK its size is not reducing its size is same as before.
Here is how I set my configuration:
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.mobile.go"
minSdkVersion 16
targetSdkVersion 29
versionCode 19
versionName "1.18"
multiDexEnabled true
ndk.abiFilters 'armeabi-v7a','arm64-v8a'
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
debug {
minifyEnabled true
shrinkResources true
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
configurations.all {
resolutionStrategy.force 'com.android.support:multidex:1.0.3'
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
// Returns whether lint should be quiet (for example, not write informational messages such as paths to report files written)
quiet true
// Whether lint should set the exit code of the process if errors are found
abortOnError false
// Returns whether lint will only check for errors (ignoring warnings)
ignoreWarnings true
// Returns whether lint should check for fatal errors during release builds. Default is true.
// If issues with severity "fatal" are found, the release build is aborted.
checkReleaseBuilds false
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
implementation project(':logging')
implementation project(':library')
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'de.greenrobot:eventbus:2.4.0'
implementation 'com.mikepenz:iconics-core:2.5.10#aar'
implementation 'com.mikepenz:google-material-typeface:2.2.0.1.original#aar'
// implementation 'com.google.android.gms:play-services-gcm:15.0.1'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.github.amlcurran.showcaseview:library:5.4.3'
implementation 'com.github.lecho:hellocharts-library:1.5.8#aar'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'de.hdodenhof:circleimageview:2.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.github.PhilJay:MPAndroidChart:v2.2.4'
implementation 'com.parse:parse-android:1.10.0'
implementation 'pl.bclogic:pulsator4droid:1.0.3'
implementation 'com.hedgehog.ratingbar:app:1.1.2'
implementation('com.inscripts:CometChat:7.33.+')
{
transitive = true;
exclude module: 'gson'
}
implementation('com.inscripts:CometChatUI:7.33.+')
{
transitive = true;
exclude module: 'gson'
}
implementation 'org.jsoup:jsoup:1.8.1'
implementation 'com.android.support:multidex:1.0.1'
implementation('com.crashlytics.sdk.android:crashlytics:2.8.0#aar') {
transitive = true;
}
// for push notification
implementation 'com.google.firebase:firebase-core:17.2.1'
implementation 'com.google.firebase:firebase-messaging:20.0.1'
implementation 'com.google.firebase:firebase-auth:19.1.0'
implementation 'com.google.firebase:firebase-database:19.2.0'
implementation 'com.google.firebase:firebase-analytics:17.2.1'
implementation 'com.google.firebase:firebase-crashlytics:17.0.0-beta01'
// Required for Flurry Analytics integration
implementation 'com.flurry.android:analytics:12.0.3'
//Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.1'
}
repositories {
maven { url "https://jitpack.io" }
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
What am I missing?

In gradle code above,minifyenabled and shrinkresources are true for debug build,please check if you are building apk in release variant.
Other mechanisms to reduce apk size is to convert drawables to webp format as below.
select drawables and right click to get as below.
Then select lossy or lossless encoding because some drawables can't be converted into webp with lossless.
For more techniques,
https://medium.com/#kevalpatel2106/how-you-can-decrease-application-size-by-60-in-only-5-minutes-47eff3e7874e

Related

How to fix gradle which stopped working - error while syncing?

I have an Issue with gradle in my Android Project. I feel stupid I could't solve this Issue myself. I closed the project yesterday evening end reopend it this morning, So gradle wasn't touched at all. This morning i got the following error
Could not compile build file 'D:\Code\Android\workouttracker\app\build.gradle'.
> startup failed:
build file 'D:\Code\Android\workouttracker\app\build.gradle': 87: Unexpected input: '{' # line 87, column 14.
dependencies {
So i guessed it must be a missing braket, but I couldn't find one in my build gradle, maybe I am stupid or blind.
I get the same error when I run gradlew in the project direcroy
Here is my build.gradle (After me trieing to fix it)
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
configurations.implementation {
exclude group: 'org.jetbrains' , module:'annotations'
exclude group: 'org.jetbrains.kotlin' , module:'kotlin-stdlib'
exclude group: 'com.intellij', module:'annotations'
exclude group: 'com.intellij', module:'annotations'
exclude group: 'com.intellij', module:'annotations'
}
android {
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
compileSdkVersion 30
buildToolsVersion '32.0.0-rc1'
defaultConfig {
applicationId 'ch.workouttracker'
minSdkVersion 28
targetSdkVersion 30
versionCode 901
versionName '0.9.0.1'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
resConfigs "de" // And any other languages you support
}
signingConfigs {
release {
storeFile file("C:\\Users\\DonBolli\\.android\\debug.keystore")
storePassword ANDROID_STORE_PASSWORD
keyAlias 'workouttrackerkey'
keyPassword ANDROID_KEY_PASSWORD
}
debug {
storeFile file("C:\\Users\\DonBolli\\.android\\debug.keystore")
storePassword ANDROID_STORE_PASSWORD
keyAlias 'workouttrackerkey'
keyPassword ANDROID_KEY_PASSWORD
}
}
buildTypes {
debug {
minifyEnabled false
signingConfig signingConfigs.debug
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.md'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.md'
exclude 'META-INF/DEPENDENCIES'
}
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
allprojects {
repositories {
mavenCentral()
maven { url = "https://maven.fabric.io/public" }
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//Firebase
implementation platform('com.google.firebase:firebase-bom:29.0.0')
implementation ("com.google.firebase:firebase-core:20.0.0") {
exclude group: "com.android.support", module: "support-v4"
}
implementation 'com.google.firebase:firebase-messaging:23.0.0'
implementation 'com.google.firebase:firebase-analytics:20.0.0'
implementation 'com.google.firebase:firebase-plugins:2.0.0'
implementation 'com.google.firebase:firebase-ml-vision:24.0.0'
implementation ("com.google.firebase:firebase-auth:21.0.1") {
exclude group: "com.android.support", module: "support-v4"
}
implementation 'com.google.firebase:firebase-database:20.0.2'
implementation 'com.google.firebase:firebase-storage:20.0.0'
//CrashAlyrics
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-analytics'
//Graphview
implementation 'com.jjoe64:graphview:4.2.1'
implementation 'org.apache.commons:commons-lang3:3.4'
//Google Play
implementation ("com.google.android.gms:play-services-base:17.6.0") {
exclude group: "com.android.support", module: "support-v4"
}
implementation 'com.google.android.gms:play-services-auth:19.2.0'
//Support
implementation "androidx.appcompat:appcompat:1.1.0"
implementation "androidx.appcompat:appcompat-resources:1.1.0"
implementation "androidx.navigation:navigation-fragment-ktx:2.2.1"
implementation "androidx.drawerlayout:drawerlayout:1.0.0"
implementation "androidx.gridlayout:gridlayout:1.0.0"
implementation "androidx.preference:preference:1.1.0"
implementation "androidx.recyclerview:recyclerview:1.1.0"
implementation "androidx.cardview:cardview:1.0.0"
implementation "io.reactivex.rxjava2:rxjava:2.2.13"
implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
// Gradle
implementation com.android.tools.build:gradle);
//Glide
implementation 'com.github.bumptech.glide:glide:4.11.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
/**
* dependency to request the runtime permissions.
*/
implementation 'com.karumi:dexter:4.2.0'
// code generator for view
implementation "com.jakewharton:butterknife:10.2.0"
annotationProcessor "com.jakewharton:butterknife-compiler:10.2.0"
testImplementation 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
There was an error inside the dependencies
// Gradle
implementation com.android.tools.build:gradle);
Changed this to
// Gradle
implementation 'com.android.tools.build:gradle'

Error: Program type already present: org.xmlpull.v1.XmlPullParser

I'm getting this error when building a project, it seems that I have 2 libraries in my Gradle that are using the XML parser I tried to exclude it but it's not working.
Error: Program type already present: org.xmlpull.v1.XmlPullParser
Can anyone help me please in the right syntax for excluding the library?
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
}
compileSdkVersion 28
defaultConfig {
multiDexEnabled true
applicationId ''
minSdkVersion 19
targetSdkVersion 28
versionCode 4
versionName '4.0.0'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
def lastestMaterialDrawerRelease = '6.0.9'
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation files('libs/magtek-scra.jar')
implementation files('libs/univocity-parsers-2.6.3.jar')
implementation 'com.simplify:partner-sdk-android:1.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation "com.android.support:appcompat-v7:$rootProject.supportVersion"
implementation "com.android.support:design:$rootProject.supportVersion"
implementation "com.android.support:recyclerview-v7:$rootProject.supportVersion"
implementation "com.android.support:cardview-v7:$rootProject.supportVersion"
implementation "com.android.support.constraint:constraint-
layout:$rootProject.constraintLayoutVersion"
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.google.android.gms:play-services-location:15.0.0'
implementation 'net.gotev:uploadservice:3.4.2'
implementation files('libs/mtscra.jar')
implementation('com.journeyapps:zxing-android-embedded:3.6.0') { transitive = false }
implementation 'com.google.zxing:core:3.3.0'
implementation 'uk.co.samuelwall:material-tap-target-prompt:2.15.0'
implementation("com.mikepenz:materialdrawer:6.0.9#aar") {
transitive = true
}
implementation 'jp.wasabeef:blurry:3.0.0'
implementation 'id.zelory:compressor:2.1.0'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.google.firebase:firebase-core:16.0.5'
implementation 'com.google.firebase:firebase-messaging:18.0.0'
implementation 'com.google.firebase:firebase-config:16.5.0'
implementation 'com.github.f0ris.sweetalert:library:1.5.1'
implementation 'com.github.AppIntro:AppIntro:4.2.3'
implementation 'com.github.deano2390:MaterialShowcaseView:1.3.4'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
implementation 'com.github.JakeWharton:ViewPagerIndicator:2.4.1'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.intuit.sdp:sdp-android:1.0.6'
implementation 'org.jsoup:jsoup:1.12.1'
}
apply plugin: 'com.google.gms.google-services'

while building apk showing APP not installed error in android apk

I have generated a signed apk and given to client.Next time when i build apk using same signed apk .While installing it is showing as App not installed.Someone please tell me why is it so
Please find my gradle code.The version code was 1 and version name was 1.1 for previous build
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "net.abc.test"
minSdkVersion 21
targetSdkVersion 28
versionCode 2
versionName "1.1"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
configurations {
all {
exclude group: 'org.json', module: 'json'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
exclude 'META-INF/rxjava.properties'
exclude 'META-INF/proguard/androidx-annotations.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.2.0-alpha02'
implementation 'com.android.support:design:28.0.0'
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.miguelcatalan:materialsearchview:1.4.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.google.android:flexbox:0.3.0'
implementation 'net.gotev:uploadservice:3.0.3'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'joda-time:joda-time:2.9.9'
implementation 'com.github.mabbas007:TagsEditText:1.0.5'
implementation 'com.google.firebase:firebase-messaging:17.4.0'
implementation 'com.kbeanie:multipicker:1.1.31#aar'
implementation('com.amazonaws:aws-android-sdk-mobile-client:2.6.27') { transitive = true }
implementation 'com.amazonaws:aws-android-sdk-s3:2.7.4'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.6.27'
implementation 'it.michelelacorte.elasticprogressbar:library:1.0.5'
implementation 'com.github.nkzawa:socket.io-client:0.3.0'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'cn.jzvd:jiaozivideoplayer:6.2.12'
implementation 'me.zhanghai.android.materialprogressbar:library:1.1.7'
implementation 'com.facebook.shimmer:shimmer:0.1.0#aar'
implementation 'com.applandeo:material-calendar-view:1.0.1'
implementation 'com.getbase:floatingactionbutton:1.10.1'
implementation 'com.evrencoskun.library:tableview:0.8.8'
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0-alpha'
implementation 'com.github.yalantis:ucrop:2.2.2-native'
implementation 'com.github.bumptech.glide:glide:4.9.0'
implementation 'com.github.chinalwb:are:0.1.7'
implementation 'com.kyanogen.signatureview:signature-view:1.0'
implementation 'com.google.guava:guava:28.0-jre'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'org.jetbrains:annotations-java5:15.0'
}
apply plugin: 'com.google.gms.google-services'
There are few reasons why it may be occured:
Previous version code is less than the current. Try to increase it or/and check also version name in app info screen on device
The signatures don't match each other. Be careful with their data
Turn off google play protect. May be the problem is somewhere in google services

Google Place api not giving search result

I just migrate my Google Place autocomplete in my Android Project, but it is not showing search result.
I already enable billing in my project.
but it is showing Can't load search result"
Please help
Thanks in advance.
Please check my gradle file code below
I have already removed previous place api gradle and added new place library
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.inwizards.findcoach"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
dexOptions {
preDexLibraries = false
jumboMode = false
javaMaxHeapSize "2048M"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}
repositories {
maven { url "https://jitpack.io" }
google()
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation files('libs/nineoldandroids-2.4.0.jar')
implementation 'com.google.firebase:firebase-core:17.0.0'
implementation 'com.google.firebase:firebase-database:18.0.1'
implementation 'com.firebase:firebase-client-android:2.5.2'
implementation 'androidx.multidex:multidex:2.0.0'
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.koushikdutta.ion:ion:2.2.1'
implementation 'com.squareup.picasso:picasso:2.4.0'
implementation 'org.apache.httpcomponents:httpmime:4.2.3'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.mcxiaoke.volley:library:1.0.19'
implementation 'com.paypal.sdk:paypal-android-sdk:2.15.3'
implementation 'com.facebook.android:facebook-login:4.42.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.google.firebase:firebase-messaging:19.0.1'
implementation 'com.github.sujithkanna:smileyrating:1.6.5'
implementation 'com.github.ekimual:croperino:1.1.2'
implementation 'com.nex3z:flow-layout:1.3.0'
testImplementation 'junit:junit:4.12'
implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])
implementation 'com.miguelcatalan:materialsearchview:1.4.0'
implementation ('com.google.android.libraries.places:places:2.1.0'){
exclude module: 'volley'
}
}
android {
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
}
apply plugin: 'com.google.gms.google-services'
Actually i also faced the same problem butwhen i used another key it work fine for me

Error: Program type already present: org.intellij.lang.annotations.JdkConstants$PatternFlags 2

I still have this error and no clue what is wrong I cleaned and rebuilded several times.
This is my build.gradle App:
apply plugin: 'com.android.application'
configurations {
cleanedAnnotations
compile.exclude group: 'org.jetbrains' , module:'annotations'
}
android {
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId 'ch.workouttracker'
minSdkVersion 24
targetSdkVersion 28
versionCode 1
versionName "0.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
resConfigs "de" // And any other languages you support
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions{
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/DEPENDENCIES'
}
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
productFlavors {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
allprojects {
repositories {
maven { url = "https://maven.fabric.io/public" }
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//Firebase
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-storage:16.0.5'
//Graphview
implementation 'com.jjoe64:graphview:4.2.1'
implementation 'org.apache.commons:commons-lang3:3.4'
//Google Play
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.android.gms:play-services-identity:16.0.0'
//FirebaseUI
implementation 'com.firebaseui:firebase-ui-auth:4.1.0'
implementation 'com.firebaseui:firebase-ui-storage:1.2.0'
implementation 'com.facebook.android:facebook-android-sdk:4.27.0'
implementation 'com.twitter.sdk.android:twitter-core:3.1.1'
//Support
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:support-core-utils:27.1.1'
implementation 'com.android.support:support-media-compat:27.1.1 '
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:gridlayout-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:preference-v7:27.1.1'
//Firebase
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.7'
implementation 'com.google.firebase:firebase-plugins:1.1.5'
}
apply plugin: 'com.google.gms.google-services'
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
containing the snippet that should solve this problem. Any idea is welcome as i am completly stuck. I tried snippets from several places to avoid typos. i run out of ideas, so please help me

Categories

Resources