com.tns.NativeScriptException

Calling js method onTouch failed TypeError: Cannot read property 'android' of undefined File: "/data/data/package_name/files/app/tns_modules/ui/gestures/gestures.js, line: 97, column: 40 StackTrace: Frame: function:'Page._showNativeModalView', file:'/data/data/package_name/files/app/tns_modules/ui/page/page.js', line: 138, column: 47 Frame: function:'Page.showModal', file:'/data/data/package_name/files/app/tns_modules/ui/page/page-common.js', line: 222, column: 18 Frame: function:'buscarCliente', file:'/data/data/package_name/files/app/views/abrir/ver-cotizacion/clonar/clonar.js', line: 99, column: 14 Frame: function:'_executeCallback', file:'/data/data/package_name/files/app/tns_modules/ui/gestures/gestures.js', line: 151, column: 27 Frame: function:'TapAndDoubleTapGestureListener.onSingleTapUp', file:'/data/data/package_name/files/app/tns_modules/ui/gestures/gestures.js', line: 171, column: 17 Frame: function:'GesturesObserver.androidOnTouchEvent', file:'/data/data/package_name/files/app/tns_modules/ui/gestures/gestures.js', line: 97, column: 41 Frame: function:'onTouch', file:'/data/data/package_name/files/app/tns_modules/ui/core/view.js', line: 113, column: 37


Solutions on the web124

Solution icon of github
Calling js method onTouch failed TypeError: Cannot read property 'android' of undefined File: "/data/data/package_name/files/app/tns_modules/ui/gestures/gestures.js, line: 97, column: 40 StackTrace: Frame: function:'Page._showNativeModalView

Solution icon of github
Calling js method onTouch failed TypeError: Cannot read property 'android' of undefined File: "/data/data/package_name/files/app/tns_modules/ui/gestures/gestures.js, line: 97, column: 40 StackTrace: Frame: function:'Page._showNativeModalView

Solution icon of github
Calling js method onTouch failed [object Object] File: "/data/data/<app>/files/app/tns_modules/ui/gestures/gestures.js, line: 97, column: 40 StackTrace: Frame: function:'GesturesObserver.androidOnTouchEvent', file:'/data/data/<app>/files/app

Solution icon of github
Calling js method onCreateView failed TypeError: Cannot read property 'LayoutParams' of undefined File: "/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js, line: 507, column: 68 StackTrace: Frame: function

Solution icon of github
Calling js method onCreateView failed TypeError: Cannot read property 'LayoutParams' of undefined File: "/data/data/org.nativescript.gopost/files/app/tns_modules/ui/core/view.js, line: 507, column: 68 StackTrace: Frame: function

Solution icon of github
via GitHub by HiskDeathnote
, 9 months ago
Calling js method onCreateView failed TypeError: Cannot read property 'LayoutParams' of undefined File: "/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/core/view.js, line: 507, column: 68 StackTrace: Frame: function

Solution icon of github
Calling js method onCreateView failed TypeError: Cannot read property 'LayoutParams' of undefined File: "/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js, line: 507, column: 68 StackTrace: Frame: function

Solution icon of stackoverflow
Calling js method onTouch failed [object Object] File: "file:///data/data/org.nativescript.HelloWorld/files/app/tns_modules/tns-core-modules/ui/gestures/gestures.js, line: 97, column: 40 StackTrace: Frame: function

Solution icon of github
Calling js method onHiddenChanged failed TypeError: Cannot read property 'setImageURI' of undefined File: "/data/data/com.smarpsocial.smarpshare/files/app/tns_modules/nativescript-fresco/fresco/fresco.js, line: 19, column: 21 StackTrace: Frame

Solution icon of github
via GitHub by 3rror404
, 9 months ago
Calling js method onSaveInstanceState failed TypeError: Cannot read property 'getIntent' of undefined File: "/data/data/**APP_ID**/files/app/tns_modules/ui/frame/frame.js, line: 695, column: 18 StackTrace: Frame: function

Stack trace

  • com.tns.NativeScriptException: Calling js method onTouch failed TypeError: Cannot read property 'android' of undefined File: "/data/data/package_name/files/app/tns_modules/ui/gestures/gestures.js, line: 97, column: 40 StackTrace: Frame: function:'Page._showNativeModalView', file:'/data/data/package_name/files/app/tns_modules/ui/page/page.js', line: 138, column: 47 Frame: function:'Page.showModal', file:'/data/data/package_name/files/app/tns_modules/ui/page/page-common.js', line: 222, column: 18 Frame: function:'buscarCliente', file:'/data/data/package_name/files/app/views/abrir/ver-cotizacion/clonar/clonar.js', line: 99, column: 14 Frame: function:'_executeCallback', file:'/data/data/package_name/files/app/tns_modules/ui/gestures/gestures.js', line: 151, column: 27 Frame: function:'TapAndDoubleTapGestureListener.onSingleTapUp', file:'/data/data/package_name/files/app/tns_modules/ui/gestures/gestures.js', line: 171, column: 17 Frame: function:'GesturesObserver.androidOnTouchEvent', file:'/data/data/package_name/files/app/tns_modules/ui/gestures/gestures.js', line: 97, column: 41 Frame: function:'onTouch', file:'/data/data/package_name/files/app/tns_modules/ui/core/view.js', line: 113, column: 37 at com.tns.Runtime.callJSMethodNative(Native Method) at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1022) at com.tns.Runtime.callJSMethodImpl(Runtime.java:907) at com.tns.Runtime.callJSMethod(Runtime.java:895) at com.tns.Runtime.callJSMethod(Runtime.java:879) at com.tns.Runtime.callJSMethod(Runtime.java:871) at com.tns.gen.android.view.View_OnTouchListener.onTouch(android.view.View$OnTouchListener.java) at android.view.View.dispatchTouchEvent(View.java:8802) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2581) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2581) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2581) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2581) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2581) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2581) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2581) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2581) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2254) at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2607) at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1779) at android.app.Dialog.dispatchTouchEvent(Dialog.java:765) at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2568) at android.view.View.dispatchPointerEvent(View.java:9003) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4209) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4072) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3627) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3680) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3646) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3763) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3654) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3820) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3627) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3680) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3646) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3654) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3627) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5910) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5884) at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5855) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6000) at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:143) at android.os.Looper.loop(Looper.java:122) at android.app.ActivityThread.main(ActivityThread.java:5910) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 3 months ago