com.tns.NativeScriptException: Calling js method onCreate failed TypeError: Cannot read property 'ucrop' of undefined File: "<unknown>, line: 1, column: 265 StackTrace: Frame: function:'', file:'/data/data/org.nativescript.MissingPerson/files/app/tns_modules/nativescript-imagecropper/imagecropper.js', line: 8, column: 25 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/org.nativescript.MissingPerson/files/app/shared/utils/utils.js', line: 5, column: 20 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/org.nativescript.MissingPerson/files/app/views/login/login.js', line: 5, column: 13 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'global.loadModule', file:'/data/data/org.nativescript.MissingPerson/files/app/tns_modules/globals/globals.js', line: 19, column: 16 Frame: function:'resolvePageFromEntry', file:'/data/data/org.nativescript.MissingPerson/files/app/tns_modules/ui/frame/frame-common.js', line: 72, column: 40 Frame: function:'Frame.navigate', file:'/data/data/org.nativescript.MissingPerson/files/app/tns_modules/ui/frame/frame-common.js', line: 148, column: 20 Frame: function:'NativeScriptActivity.onCreate', file:'/data/data/org.nativescript.MissingPerson/files/app/tns_modules/ui/frame/frame.js', line: 616, column: 19 ```


Solutions on the web17

Solution icon of github
Calling js method onCreate failed TypeError: Cannot read property 'ucrop' of undefined File: "<unknown>, line: 1, column: 265 StackTrace: Frame: function:'', file:'/data/data/org.nativescript.MissingPerson/files/app/tns_modules/nativescript

Solution icon of github
via GitHub by 3rror404
, 10 months ago
Calling js method onCreate failed TypeError: Cannot read property 'getIntent' of undefined File: "/data/data/com.transistorsoft.backgroundgeolocation.nativescript/files/app/tns_modules/ui/frame/frame.js, line: 685, column: 18 StackTrace: Frame

Solution icon of github
via GitHub by af-fess
, 10 months ago
Calling js method onCreate failed Error: Failed to load Page from entry.moduleName: main-page File: "/data/data/com.appsflyer.nts.demo/files/app/tns_modules/ui/frame/frame-common.js, line: 92, column: 12 StackTrace: Frame: function

Solution icon of github
Calling js method onCreate failed TypeError: Cannot read property 'initialize' of undefined File: "file:///data/data/com.readersguide.android/files/app/tns_modules/nativescript-plugin-firebase/firebase.js, line: 290, column: 44 StackTrace: Frame

Solution icon of github
via GitHub by benlooi
, 4 months ago
Calling js method onCreate failed TypeError: extras.getInt is not a function File: "file:///data/data/org.nativescript.MyApp/files/app/tns_modules/tns-core-modules/ui/frame/frame.js, line: 652, column: 29 StackTrace: Frame: function

Solution icon of github
via GitHub by narayananl23
, 11 months ago
Calling js method onStart failed TypeError: Cannot read property 'getInstance' of undefined File: "/data/data/com.transistorsoft.backgroundgeolocation.nativescript/files/app/tns_modules/ui/frame/frame.js, line: 702, column: 18 StackTrace: Frame

Solution icon of github
via GitHub by hamzahppa
, 3 weeks ago
Calling js method onCreate failed TypeError: activityInfo.metaData.getInt is not a function File: "file:///data/data/org.nativescript.HelloWorld/files/app/tns_modules/tns-core-modules/ui/frame/frame.js, line: 673, column: 18 StackTrace: Frame

Solution icon of stackoverflow
identifier File: "file:///data/data/br.com.fullservice.MobileAPP.mobile.client/files/app/tns_modules/tns-core-modules/ui/builder/builder.js, line: 195, column: 20 StackTrace: Frame: function:'ScopeError', file:'file:///data/data

Solution icon of github
via GitHub by danielgek
, 3 months ago
Calling js method onStart failed ReferenceError: io is not defined File: "file:///data/data/pt.minsaude.spms.ces/files/app/tns_modules/tns-core-modules/ui/frame/frame.js, line: 702, column: 18 StackTrace: Frame: function:'', file:'file:///data

Solution icon of github
via GitHub by nraboy
, 1 month ago
Calling js method onCreate failed Error: A Frame must be used to navigate to a Page. File: "file:///data/data/com.nraboy.solarflare/files/app/tns_modules/tns-core-modules/ui/frame/frame.js, line: 680, column: 16 StackTrace: Frame: function

Stack trace

com.tns.NativeScriptException: Calling js method onCreate failed

TypeError: Cannot read property 'ucrop' of undefined
File: "<unknown>, line: 1, column: 265

StackTrace: 
    Frame: function:'', file:'/data/data/org.nativescript.MissingPerson/files/app/tns_modulesativescript-imagecropper/imagecropper.js', line: 8, column: 25
    Frame: function:'require', file:'', line: 1, column: 266
    Frame: function:'', file:'/data/data/org.nativescript.MissingPerson/files/app/shared/utils/utils.js', line: 5, column: 20
    Frame: function:'require', file:'', line: 1, column: 266
    Frame: function:'', file:'/data/data/org.nativescript.MissingPerson/files/app/views/login/login.js', line: 5, column: 13
    Frame: function:'require', file:'', line: 1, column: 266
    Frame: function:'global.loadModule', file:'/data/data/org.nativescript.MissingPerson/files/app/tns_modules/globals/globals.js', line: 19, column: 16
    Frame: function:'resolvePageFromEntry', file:'/data/data/org.nativescript.MissingPerson/files/app/tns_modules/ui/frame/frame-common.js', line: 72, column: 40
    Frame: function:'Frame.navigate', file:'/data/data/org.nativescript.MissingPerson/files/app/tns_modules/ui/frame/frame-common.js', line: 148, column: 20
    Frame: function:'NativeScriptActivity.onCreate', file:'/data/data/org.nativescript.MissingPerson/files/app/tns_modules/ui/frame/frame.js', line: 616, column: 19

```
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2808)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2873)
	at android.app.ActivityThread.access$900(ActivityThread.java:181)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1482)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:145)
	at android.app.ActivityThread.main(ActivityThread.java:6145)
	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:1399)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)

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

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.