question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firestore References can't be parsed

See original GitHub issue

The firestore supports references to be stored. This doesn’t work with the plugin. You can’t set a reference through the app and if you try to receive a reference, the app crashes.

Crash report:

System.err: com.tns.NativeScriptException: 
System.err: Calling js method run failed
System.err: 
System.err: Error: java.lang.AssertionError: java.lang.NoSuchFieldException: ASCENDING
System.err:     com.google.gson.internal.bind.TypeAdapters$EnumTypeAdapter.<init>(TypeAdapters.java:791)
System.err:     com.google.gson.internal.bind.TypeAdapters$30.create(TypeAdapters.java:817)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:53)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.MapTypeAdapterFactory.create(MapTypeAdapterFactory.java:126)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:56)
System.err:     com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:208)
System.err:     com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:145)
System.err:     com.google.gson.Gson.toJson(Gson.java:669)
System.err:     com.google.gson.Gson.toJson(Gson.java:648)
System.err:     com.google.gson.Gson.toJson(Gson.java:603)
System.err:     com.google.gson.Gson.toJson(Gson.java:583)
System.err:     com.tns.Runtime.callJSMethodNative(Native Method)
System.err:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088)
System.err:     com.tns.Runtime.callJSMethodImpl(Runtime.java:970)
System.err:     com.tns.Runtime.callJSMethod(Runtime.java:957)
System.err:     com.tns.Runtime.callJSMethod(Runtime.java:941)
System.err:     com.tns.Runtime.callJSMethod(Runtime.java:933)
System.err:     com.tns.gen.com.google.android.gms.tasks.OnCompleteListener.onComplete(OnCompleteListener.java:11)
System.err:     com.google.android.gms.tasks.zzf.run(Unknown Source)
System.err:     android.os.Handler.handleCallback(Handler.java:751)
System.err:     android.os.Handler.dispatchMessage(Handler.java:95)
System.err:     android.os.Looper.loop(Looper.java:154)
System.err:     android.app.ActivityThread.main(ActivityThread.java:6119)
System.err:     java.lang.reflect.Method.invoke(Native Method)
System.err:     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
System.err:     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
System.err: Caused by: java.lang.NoSuchFieldException: ASCENDING
System.err:     java.lang.Class.getField(Class.java:1549)
System.err:     com.google.gson.internal.bind.TypeAdapters$EnumTypeAdapter.<init>(TypeAdapters.java:780)
System.err:     com.google.gson.internal.bind.TypeAdapters$30.create(TypeAdapters.java:817)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:53)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.MapTypeAdapterFactory.create(MapTypeAdapterFactory.java:126)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:56)
System.err:     com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:208)
System.err:     com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:145)
System.err:     com.google.gson.Gson.toJson(Gson.java:669)
System.err:     com.google.gson.Gson.toJson(Gson.java:648)
System.err:     com.google.gson.Gson.toJson(Gson.java:603)
System.err:     com.google.gson.Gson.toJson(Gson.java:583)
System.err:     com.tns.Runtime.callJSMethodNative(Native Method)
System.err:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088)
System.err:     com.tns.Runtime.callJSMethodImpl(Runtime.java:970)
System.err:     com.tns.Runtime.callJSMethod(Runtime.java:957)
System.err:     com.tns.Runtime.callJSMethod(Runtime.java:941)
System.err:     com.tns.Runtime.callJSMethod(Runtime.java:933)
System.err:     com.tns.gen.com.google.android.gms.tasks.OnCompleteListener.onComplete(OnCompleteListener.java:11)
System.err:     com.google.android.gms.tasks.zzf.run(Unknown Source)
System.err:     android.os.Handler.handleCallback(Handler.java:751)
System.err:     android.os.Handler.dispatchMessage(Handler.java:95)
System.err:     android.os.Looper.loop(Looper.java:154)
System.err:     android.app.ActivityThread.main(ActivityThread.java:6119)
System.err:     java.lang.reflect.Method.invoke(Native Method)
System.err:     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
System.err:     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
System.err: File: "file:///data/data/com.app.appCode/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js, line: 142, column: 24
System.err: 
System.err: StackTrace: 
System.err:     Frame: function:'firebase_common_1.firebase.toJsObject', file:'file:///data/data/com.app.appCode/files/app/tns_modules/nativescript-plugin-firebase/firebase.js', line: 135, column: 34
System.err:     Frame: function:'', file:'file:///data/data/com.app.appCode/files/app/tns_modules/nativescript-plugin-firebase/firebase.js', line: 2173, column: 179
System.err:     Frame: function:'', file:'file:///data/data/com.app.appCode/files/app/shared/services/user-data.service.js', line: 52, column: 41
System.err:     Frame: function:'SafeSubscriber.__tryOrSetError', file:'file:///data/data/com.app.appCode/files/app/tns_modules/rxjs/Subscriber.js', line: 247, column: 16
System.err:     Frame: function:'SafeSubscriber.next', file:'file:///data/data/com.app.appCode/files/app/tns_modules/rxjs/Subscriber.js', line: 187, column: 27
System.err:     Frame: function:'Subscriber._next', file:'file:///data/data/com.app.appCode/files/app/tns_modules/rxjs/Subscriber.js', line: 125, column: 26
System.err:     Frame: function:'Subscriber.next', file:'file:///data/data/com.app.appCode/files/app/tns_modules/rxjs/Subscriber.js', line: 89, column: 18
System.err:     Frame: function:'DoSubscriber._next', file:'file:///data/data/com.app.appCode/files/app/tns_modules/rxjs/operator/do.js', line: 83, column: 24
System.err:     Frame: function:'Subscriber.next', file:'file:///data/data/com.app.appCode/files/app/tns_modules/rxjs/Subscriber.js', line: 89, column: 18
System.err:     Frame: function:'', file:'file:///data/data/com.app.appCode/files/app/tns_modules/rxjs/observable/PromiseObservable.js', line: 66, column: 36
System.err:     Frame: function:'ZoneDelegate.invoke', file:'file:///data/data/com.app.appCode/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 365, column: 26
System.err:     Frame: function:'Zone.run', file:'file:///data/data/com.app.appCode/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 125, column: 43
System.err:     Frame: function:'', file:'file:///data/data/com.app.appCode/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 760, column: 57
System.err:     Frame: function:'ZoneDelegate.invokeTask', file:'file:///data/data/com.app.appCode/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 398, column: 31
System.err:     Frame: function:'Zone.runTask', file:'file:///data/data/com.app.appCode/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 165, column: 47
System.err:     Frame: function:'drainMicroTaskQueue', file:'file:///data/data/com.app.appCode/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 593, column: 35
System.err: 
System.err:     at com.tns.Runtime.callJSMethodNative(Native Method)
System.err:     at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088)
System.err:     at com.tns.Runtime.callJSMethodImpl(Runtime.java:970)
System.err:     at com.tns.Runtime.callJSMethod(Runtime.java:957)
System.err:     at com.tns.Runtime.callJSMethod(Runtime.java:941)
System.err:     at com.tns.Runtime.callJSMethod(Runtime.java:933)
System.err:     at com.tns.gen.java.lang.Runnable.run(Runnable.java:10)
System.err:     at android.os.Handler.handleCallback(Handler.java:751)
System.err:     at android.os.Handler.dispatchMessage(Handler.java:95)
System.err:     at android.os.Looper.loop(Looper.java:154)
System.err:     at android.app.ActivityThread.main(ActivityThread.java:6119)
System.err:     at java.lang.reflect.Method.invoke(Native Method)
System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
System.err: Caused by: java.lang.AssertionError: java.lang.NoSuchFieldException: ASCENDING
System.err:     at com.google.gson.internal.bind.TypeAdapters$EnumTypeAdapter.<init>(TypeAdapters.java:791)
System.err:     at com.google.gson.internal.bind.TypeAdapters$30.create(TypeAdapters.java:817)
System.err:     at com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     at com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     at com.google.gson.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:53)
System.err:     at com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     at com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     at com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     at com.google.gson.internal.bind.MapTypeAdapterFactory.create(MapTypeAdapterFactory.java:126)
System.err:     at com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     at com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     at com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     at com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     at com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:115)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:164)
System.err:     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100)
System.err:     at com.google.gson.Gson.getAdapter(Gson.java:423)
System.err:     at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:56)
System.err:     at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:208)
System.err:     at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:145)
System.err:     at com.google.gson.Gson.toJson(Gson.java:669)
System.err:     at com.google.gson.Gson.toJson(Gson.java:648)
System.err:     at com.google.gson.Gson.toJson(Gson.java:603)
System.err:     at com.google.gson.Gson.toJson(Gson.java:583)
System.err:     at com.tns.Runtime.callJSMethodNative(Native Method)
System.err:     at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088)
System.err:     at com.tns.Runtime.callJSMethodImpl(Runtime.java:970)
System.err:     at com.tns.Runtime.callJSMethod(Runtime.java:957)
System.err:     at com.tns.Runtime.callJSMethod(Runtime.java:941)
System.err:     at com.tns.Runtime.callJSMethod(Runtime.java:933)
System.err:     at com.tns.gen.com.google.android.gms.tasks.OnCompleteListener.onComplete(OnCompleteListener.java:11)
System.err:     at com.google.android.gms.tasks.zzf.run(Unknown Source)
System.err:     ... 7 more
System.err: Caused by: java.lang.NoSuchFieldException: ASCENDING
System.err:     at java.lang.Class.getField(Class.java:1549)
System.err:     at com.google.gson.internal.bind.TypeAdapters$EnumTypeAdapter.<init>(TypeAdapters.java:780)
System.err:     ... 60 more

Reference in the firebase console: image

If I store the reference it just converts the reference to an json object

// reference get
{
    id: THE_UID_OF_THE_ELEMENT
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
EddyVerbruggencommented, Aug 27, 2018

Btw, @manojdcoder was right: it was possible that way on iOS, but not on Android.

0reactions
EddyVerbruggencommented, Aug 27, 2018

Adding support for saving references in #875.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot parse FIrestore "Timestamp" field - java - Stack Overflow
I have logged out the RemoteMessage.getData(), notice the "createdAt" field, this is the TimeStamp that is giving the parsing error. {userId= ...
Read more >
Supported data types | Firestore - Firebase
This page describes the data types that Cloud Firestore supports. ... Cloud Firestore references; Geographical point values; Array values; Map values.
Read more >
What is the point of the Reference type in Firestore? : r/Firebase
Easy to parse native string types in Firebase SDKs. Slightly less convenient to query ... Easy to query for the document using the...
Read more >
Firebase firestore saving reference field in dropdown
I'm attempting make a form to insert a document into a firestore collection. I'm working with a dropdown field that is a reference...
Read more >
Common Problems with Firebase - Zapier
Creating a Firestore Structured Query for a TriggerWhen using a Zap to trigger on new ... Invalid data error (Couldn't parse JSON object)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found