I am getting below error after updating from firestore:17.0.1
to firestore:17.0.2
java.lang.RuntimeException: Internal error in Firest
I had this same issue and none of the solutions worked for me when I tried them individually. After trying out various combinations that were already posted and trying out downgrading and upgrading dependencies, finally the solution below worked for me:
First, ensure you have these versions in your project level build.gradle
file:
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.google.gms:google-services:4.2.0'
Secondly, ensure you have these versions in your app level build.gradle
file:
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-auth:16.2.1'
implementation 'com.google.firebase:firebase-firestore:17.0.1'
After this, if you have build and/or sync issues, replace
implementation 'com.google.firebase:firebase-firestore:17.0.1'
with the below code having the exclusions that prevents your build to finish successfully: (in my case these 3 exclusions were needed)
implementation('com.google.firebase:firebase-firestore:17.0.1') {
exclude group: 'com.squareup.okio'
exclude group: 'com.google.guava'
exclude group: 'com.google.code.gson'
}
Also, ensure you have this at the end of your app level build.gradle
file:
apply plugin: 'com.google.gms.google-services'
Furthermore, you need to have this in your proguard-rules.pro
file:
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
Only after applying all these did my app work properly! I hope that it will help someone...