java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.mqttts/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed **SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode File: "<unknown>, line: 1, column: 265** StackTrace: Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/nativescript-mqtt/index.js', line: 3, column: 12 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/org.nativescript.mqttts/files/app/main-page.js', line: 3, column: 27 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'global.loadModule', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/globals/globals.js', line: 29, column: 31 Frame: function:'resolvePageFromEntry', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/ui/frame/frame-common.js', line: 79, column: 40 Frame: function:'Frame.navigate', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/ui/frame/frame-common.js', line: 165, column: 20 Frame: function:'ActivityCallbacksImplementation.onCreate', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/ui/frame/frame.js', line: 690, column: 19 Frame: function:'NativeScriptActivity.onCreate', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/ui/frame/activity.js', line: 12, column: 25

GitHub | codeHui | 3 months ago
  1. 0

    GitHub comment 1#246555228

    GitHub | 3 months ago | codeHui
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.mqttts/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed **SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode File: "<unknown>, line: 1, column: 265** StackTrace: Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/nativescript-mqtt/index.js', line: 3, column: 12 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/org.nativescript.mqttts/files/app/main-page.js', line: 3, column: 27 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'global.loadModule', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/globals/globals.js', line: 29, column: 31 Frame: function:'resolvePageFromEntry', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/ui/frame/frame-common.js', line: 79, column: 40 Frame: function:'Frame.navigate', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/ui/frame/frame-common.js', line: 165, column: 20 Frame: function:'ActivityCallbacksImplementation.onCreate', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/ui/frame/frame.js', line: 690, column: 19 Frame: function:'NativeScriptActivity.onCreate', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/ui/frame/activity.js', line: 12, column: 25
  2. 0

    android browse images failure delivering result error

    Stack Overflow | 5 years ago | jonny
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/73 }} to activity {ianco.test.andrei/ianco.test.andrei.BrowsePicture}: java.lang.NullPointerException 12-24 14:19:40.537: E/AndroidRuntime(5892): at android.app.ActivityThread.deliverResults(ActivityThread.java:2553) 12-24 14:19:40.537: E/AndroidRuntime(5892): at android.app.ActivityThread.handleSendResult(ActivityThread.java:2595) 12-24 14:19:40.537: E/AndroidRuntime(5892): at android.app.ActivityThread.access$2000(ActivityThread.java:121) 12-24 14:19:40.537: E/AndroidRuntime(5892): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:973)
  3. 0

    Failure delivering ResultInfo

    GitHub | 2 years ago | grassick
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=null} to activity {co.mwater.clientapp/co.mwater.clientapp.mWater}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Pass extra intent after capturing image from camera

    Stack Overflow | 2 years ago | Ronak Patel
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=-1, data=null} to activity {com.example.android.navigationdrawerexample/com.example.android.mtesapp.EditProfileActivity}: java.lang.NullPointerException
  6. 0

    application crashed on orientation change

    Stack Overflow | 4 years ago | user1778855
    java.lang.RuntimeException: Unable to start activity ComponentInfo{..../....Music}: java.lang.NullPointerException

  1. Indri Yunita 8 times, last 2 weeks ago
  2. bmacedo 1 times, last 2 weeks ago
  3. Alexandru Popa 91 times, last 2 weeks ago
  4. VeryRedChris 23 times, last 4 weeks ago
  5. filpgame 57 times, last 2 weeks ago
74 more registered users
21 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    Unable to start activity ComponentInfo{org.nativescript.mqttts/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed **SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode File: "<unknown>, line: 1, column: 265** StackTrace: Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/nativescript-mqtt/index.js', line: 3, column: 12 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/org.nativescript.mqttts/files/app/main-page.js', line: 3, column: 27 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'global.loadModule', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/globals/globals.js', line: 29, column: 31 Frame: function:'resolvePageFromEntry', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/ui/frame/frame-common.js', line: 79, column: 40 Frame: function:'Frame.navigate', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/ui/frame/frame-common.js', line: 165, column: 20 Frame: function:'ActivityCallbacksImplementation.onCreate', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/ui/frame/frame.js', line: 690, column: 19 Frame: function:'NativeScriptActivity.onCreate', file:'/data/data/org.nativescript.mqttts/files/app/tns_modules/ui/frame/activity.js', line: 12, column: 25

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.main
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2457)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2519)
    3. android.app.ActivityThread.access$1200(ActivityThread.java:165)
    4. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380)
    5. android.os.Handler.dispatchMessage(Handler.java:102)
    6. android.os.Looper.loop(Looper.java:135)
    7. android.app.ActivityThread.main(ActivityThread.java:5669)
    7 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
    2 frames