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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 856#155359864
    via GitHub by vchimev
    ,
  • GitHub comment 1614#197376832
    via GitHub by Daxito
    ,
  • tns run android --emulator
    via GitHub by leshin
    ,
  • onHiddenChanged failed
    via GitHub by AntonioCuevaUrraco
    ,
    • 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)
    No Bugmate found.