Skip to content

Commit f064044

Browse files
Update RTDB Error message to point to GitHub (#684)
1 parent 5669699 commit f064044

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

firebase-database/src/main/java/com/google/firebase/database/core/utilities/DefaultRunLoop.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,20 @@ public static String messageForException(Throwable t) {
128128
+ "https://firebase.google.com/docs/database/ios/structure-data#best_practices_for_data_structure"
129129
+ " and "
130130
+ "https://firebase.google.com/docs/database/android/retrieve-data#filtering_data";
131+
} else if (t instanceof NoClassDefFoundError) {
132+
return "A symbol that the Firebase Database SDK depends on failed to load. This usually "
133+
+ "indicates that your project includes an incompatible version of another Firebase "
134+
+ "dependency. If updating your dependencies to the latest version does not resolve "
135+
+ "this issue, please file a report at https://github.com/firebase/firebase-android-sdk";
131136
} else if (t instanceof DatabaseException) {
132137
// Exception should be self-explanatory and they shouldn't contact support.
133138
return "";
134139
} else {
135140
return "Uncaught exception in Firebase Database runloop ("
136141
+ FirebaseDatabase.getSdkVersion()
137-
+ "). Please report to [email protected]";
142+
+ "). If you are not already on the latest version of the Firebase SDKs, try updating "
143+
+ "your dependencies. Should this problem persist, please file a report at "
144+
+ "https://github.com/firebase/firebase-android-sdk";
138145
}
139146
}
140147
}

0 commit comments

Comments
 (0)