java.lang.RuntimeException

Unable to start activity ComponentInfo{org.nativescript.demodropdown/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed Error: Building UI from XML. @file:///app/main-page.xml:3:5 ↳Cannot read property 'getAdapter' of undefined File: "/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/builder/builder.js, line: 162, column: 20 StackTrace: Frame: function:'', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/builder/builder.js', line: 162, column: 21 Frame: function:'', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/xml/xml.js', line: 148, column: 13 Frame: function:'EasySAXParser.parse', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/js-libs/easysax/easysax.js', line: 751, column: 23 Frame: function:'XmlParser.parse', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/xml/xml.js', line: 195, column: 22 Frame: function:'XmlStringParser.parse', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/builder/builder.js', line: 168, column: 27 Frame: function:'parseInternal', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/builder/builder.js', line: 43, column: 11 Frame: function:'loadInternal', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/builder/builder.js', line: 120, column: 27 Frame: function:'load', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/builder/builder.js', line: 104, column: 27 Frame: function:'pageFromBuilder', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/frame/frame-common.js', line: 111, column: 27 Frame: function:'resolvePageFromEntry', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/frame/frame-common.js', line: 89, column: 20 Frame: function:'Frame.navigate', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/frame/frame-common.js', line: 165, column: 20 Frame: function:'ActivityCallbacksImplementation.onCreate', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/frame/frame.js', line: 690, column: 19 Frame: function:'NativeScriptActivity.onCreate', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/frame/activity.js', line: 12, column: 25

Samebug tips1

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web60380

  • via GitHub by ryc16
    , 9 months ago
    Unable to start activity ComponentInfo{org.nativescript.demodropdown/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed Error: Building UI from XML. @file:///app/main-page.xml:3:5Cannot read
  • Unable to start activity ComponentInfo{org.nativescript.TestApp/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed Error: View already has a parent. View: GridLayout(41) Parent: TabView(40) File
  • 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
  • Stack trace

    • java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.demodropdown/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed Error: Building UI from XML. @file:///app/main-page.xml:3:5 ↳Cannot read property 'getAdapter' of undefined File: "/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/builder/builder.js, line: 162, column: 20 StackTrace: Frame: function:'', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/builder/builder.js', line: 162, column: 21 Frame: function:'', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/xml/xml.js', line: 148, column: 13 Frame: function:'EasySAXParser.parse', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/js-libs/easysax/easysax.js', line: 751, column: 23 Frame: function:'XmlParser.parse', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/xml/xml.js', line: 195, column: 22 Frame: function:'XmlStringParser.parse', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/builder/builder.js', line: 168, column: 27 Frame: function:'parseInternal', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/builder/builder.js', line: 43, column: 11 Frame: function:'loadInternal', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/builder/builder.js', line: 120, column: 27 Frame: function:'load', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/builder/builder.js', line: 104, column: 27 Frame: function:'pageFromBuilder', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/frame/frame-common.js', line: 111, column: 27 Frame: function:'resolvePageFromEntry', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/frame/frame-common.js', line: 89, column: 20 Frame: function:'Frame.navigate', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/frame/frame-common.js', line: 165, column: 20 Frame: function:'ActivityCallbacksImplementation.onCreate', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/frame/frame.js', line: 690, column: 19 Frame: function:'NativeScriptActivity.onCreate', file:'/data/data/org.nativescript.demodropdown/files/app/tns_modules/ui/frame/activity.js', line: 12, column: 25 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method)

    Write tip

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

    Users with the same issue

    Unknown user
    Once, 1 year ago
    9 times, 2 weeks ago
    2 times, 4 weeks ago
    9 times, 1 month ago
    Unknown user
    2 times, 5 months ago
    207 more bugmates