java.lang.RuntimeException

tip

Try loading the text file into a WebView, then printing the contents of the WebView.

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

  • 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
  • ativescript-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(ActivityThread.java:2457) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2519) at android.app.ActivityThread.access$1200(ActivityThread.java:165) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5669) 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:960) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

Users with the same issue

filipebatista
1 times, last one,
Indri Yunita
252 times, last one,
Aravind
9 times, last one,
Unknown User
10 times, last one,
Hiren Amaliyar
82 times, last one,
206 more bugmates