com.tns.NativeScriptException

Calling js method onCreateView failed\n\nError: View already has a parent. View: Page(13) Parent: Frame(0)\ File: \"/data/data/com.abc.abc/files/app/tns_modules/ui/core/view-common.js, line: 909, column: 12 StackTrace: \n\tFrame: function:'View._addView', file:'/data/data/com.abc.abc/files/app/tns_modules/ui/core/view-common.js', line: 909, column: 19 Frame: function:'onFragmentShown', file:'/data/data/com.abc.abc/files/app/tns_modules/ui/frame/frame.js', line: 38, column: 11 Frame: function:'FragmentClass.onCreateView', file:'/data/data/com.abc.abc/files/app/tns_modules/ui/frame/frame.js', line: 538, column: 13

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web13

  • via GitHub by vchimev
    ,
  • Stack trace

    • com.tns.NativeScriptException: Calling js method onCreateView failed\n\nError: View already has a parent. View: Page(13) Parent: Frame(0)\ File: \"/data/data/com.abc.abc/files/app/tns_modules/ui/core/view-common.js, line: 909, column: 12 StackTrace: \n\tFrame: function:'View._addView', file:'/data/data/com.abc.abc/files/app/tns_modules/ui/core/view-common.js', line: 909, column: 19 Frame: function:'onFragmentShown', file:'/data/data/com.abc.abc/files/app/tns_modules/ui/frame/frame.js', line: 38, column: 11 Frame: function:'FragmentClass.onCreateView', file:'/data/data/com.abc.abc/files/app/tns_modules/ui/frame/frame.js', line: 538, column: 13 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3947) at android.app.ActivityThread.access$900(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) 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:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: com.tns.NativeScriptException: Calling js method onCreateView failed Error: View already has a parent. View: Page(13) Parent: Frame(0) File: \"/data/data/com.abc.abc/files/app/tns_modules/ui/core/view-common.js, line: 909, column: 12 StackTrace: \n\tFrame: function:'View._addView', file:'/data/data/com.abc.abc/files/app/tns_modules/ui/core/view-common.js', line: 909, column: 19 Frame: function:'onFragmentShown', file:'/data/data/com.abc.abc/files/app/tns_modules/ui/frame/frame.js', line: 38, column: 11 Frame: function:'FragmentClass.onCreateView', file:'/data/data/com.abc.abc/files/app/tns_modules/ui/frame/frame.js', line: 538, column: 13 at com.tns.Platform.callJSMethodNative(Native Method)

    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

    We couldn't find other users who have seen this exception.