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 at at$1200( at$H.handleMessage( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke( at$ at

Users with the same issue

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