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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by CommonsWare

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

Solutions on the web

via GitHub by codeHui
, 1 year ago
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
via GitHub by leshin
, 1 year ago
Unable to start activity ComponentInfo{org.nativescript.groceries/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed TypeError: Cannot read property 'widgets' of undefined File: "/data/data
via Stack Overflow by Andr&#233;s Fg
, 1 year ago
Unable to instantiate activity ComponentInfo{com.AfgArtist.iqtestgeniusabstractiontest/com.AfgArtist.iqtestgeniusabstractiontest.MainActivity}: java.lang.ClassNotFoundException: Didn't find class
via GitHub by gabrielbiga
, 1 year ago
Unable to start activity ComponentInfo{org.liquare.maya/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreateView failed TypeError: Array.create is not a function File: "/data/data/org.liquare.maya/files/app
via GitHub by prodigy7
, 1 year ago
Unable to start activity ComponentInfo{org.nativescript.mapboxdemo/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed TypeError: Cannot read property 'widgets' of undefined File: "/data/data
via GitHub by NickIliev
, 1 year ago
Unable to instantiate activity ComponentInfo{org.nativescript.tests/com.tns.NativeScriptActivity}: java.lang.ClassNotFoundException: Didn't find class "com.tns.NativeScriptActivity" on path: DexPathList[[zip file "/data/app/org.nativescript.tests-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(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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Once, 10 months ago
215 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.