com.tns.NativeScriptException: Calling js method onLocationChanged failed TypeError: Cannot set property 'latitude' of undefined File: "/data/data/org.nativescript.elektra/files/app/app.component.js, line: 44, column: 30 StackTrace: Frame: function:'', file:'/data/data/org.nativescript.elektra/files/app/app.component.js', line: 44, column: 31 Frame: function:'android.location.LocationListener.onLocationChanged', file:'/data/data/org.nativescript.elektra/files/app/tns_modules/nativescript-geolocation/nativescript-geolocation.js', line: 25, column: 17

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Julisch
, 1 year ago
Calling js method onLocationChanged failed TypeError: Cannot set property 'latitude' of undefined File: "/data/data/org.nativescript.elektra/files/app/app.component.js, line: 44, column: 30 StackTrace: Frame: function:'', file:'/data/data
via GitHub by bfv
, 9 months ago
Calling js method onLocationChanged failed [object Object] File: "file:///data/data/io.bfv.sailert/files/app/tns_modules/rxjs/Subscriber.js, line: 227, column: 12 StackTrace: Frame: function:'SafeSubscriber.__tryOrUnsub', file:'file
via GitHub by Zetazzz
, 1 year ago
Calling js method onInfo failed TypeError: Cannot read property 'msg' of undefined File: "/data/data/org.nativescript.audio/files/app/main-view-model.js, line: 119, column: 50 StackTrace: Frame: function:'playerOptions.infoCallback', file:'/data
via Stack Overflow by user2094257
, 1 year ago
: "/data/data/org.nativescript.barcodescanner/files/app/tns_modules/nativescript-angular/resource-loader.js, line: 22, column: 12 StackTrace: Frame: function:'FileSystemResourceLoader.get', file:'/data/data/org.nativescript.barcodescanner/files/app
via GitHub by idomaz00
, 4 months ago
Calling js method onClick failed >TypeError: this._mapbox.nativeElement.downloadOfflineRegion is not a function File: "file:///data/data/org.nativescript.testingmapplugin/files/app/tns_modules/@angular/core/bundles/core.umd.js, line: 13024, column
via GitHub by zaszlo
, 4 months ago
Calling js method getView failed TypeError: Cannot read property 'getItem' of null File: "file:///data/data/org.nativescript.iAngulAndro/files/app/tns_modules/tns-core-modules/ui/list-view/list-view-common.js, line: 97, column: 24 StackTrace
com.tns.NativeScriptException: Calling js method onLocationChanged failed TypeError: Cannot set property 'latitude' of undefined File: "/data/data/org.nativescript.elektra/files/app/app.component.js, line: 44, column: 30 StackTrace: Frame: function:'', file:'/data/data/org.nativescript.elektra/files/app/app.component.js', line: 44, column: 31 Frame: function:'android.location.LocationListener.onLocationChanged', file:'/data/data/org.nativescript.elektra/files/app/tns_modules/nativescript-geolocation/nativescript-geolocation.js', line: 25, column: 17
at com.tns.Runtime.callJSMethodNative(Native Method)
at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
at com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
at com.tns.Runtime.callJSMethod(Runtime.java:712)
at com.tns.Runtime.callJSMethod(Runtime.java:693)
at com.tns.Runtime.callJSMethod(Runtime.java:683)
at com.tns.gen.android.location.LocationListener.onLocationChanged(LocationListener.java:11)
at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:255)
at android.location.LocationManager$ListenerTransport.access$000(LocationManager.java:184)
at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:200)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5419)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 8 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.