TL; DR
As @ bob-snyder mentioned, why are you using both obsolete and latest APIs? Do you transfer application code?
Clean gradle build
Several times we process the Gradle construct, so to make the dependencies of the update assembly fewer errors and errors, we better structure the configuration files.
Jackson and Firebase 3
Jackson dependencies were part of the original Firebase, not Firebase 3. If you are moving the application from 2 to 3, I would advise you to transfer your data objects to Google Gson .
Enable minify
You do not use so many libraries that you must be forced to use multidex . There are good examples on Firebase-UI Android and Android Blueprints on how to set up a ProGuard file.
Support Library Version
Define your library version in the root file of the build.gradle project, as shown in Google Samples :
ext { // SDK and tools minSdkVersion = 10 targetSdkVersion = 25 compileSdkVersion = 25 buildToolsVersion = '25.0.0' // App dependencies firebaseVersion = '11.0.2' guavaVersion = '18.0' googleServicesVersion = rootProject.firebaseVersion supportLibraryVersion = '25.3.1' }
And use the rootProject values ββin the build.gradle project:
dependencies { compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion" compile "com.android.support:design:$rootProject.supportLibraryVersion" compile "com.android.support:support-v4:$rootProject.supportLibraryVersion" // Legacy Firebase compile "com.firebase:firebase-client-android:2.5.2" compile "com.firebase:geofire-android:2.1.1" // Google Services compile "com.google.android.gms:play-services-location:$rootProject.googleServicesVersion" compile "com.google.android.gms:play-services-maps:$rootProject.googleServicesVersion" // Google Firebase compile "com.google.firebase:firebase-auth:$rootProject.firebaseVersion" compile "com.google.firebase:firebase-crash:$rootProject.firebaseVersion" compile "com.google.firebase:firebase-database:$rootProject.firebaseVersion" compile 'com.serhatsurguvec.libraries:continuablecirclecountdownview:1.2' }
JP Ventura
source share