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

GitHub | ryc16 | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 24#234721108

    GitHub | 9 months ago | ryc16
    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
  2. 0

    Big Nerd Ranch Books • View topic - HELP! - Camera Preview Crashes

    bignerdranch.com | 11 months ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bignerdranch.android.criminalintent/com.bignerdranch.android.criminalintent.CrimeCameraActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
  3. 0

    json-parsing errors NullPointerException

    Stack Overflow | 2 years ago | Sandeep Sarser
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.dynamicparse/com.example.dynamicparse.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Having trouble with Android manifest configuration

    Stack Overflow | 3 years ago | SuperNoob
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.badlogic.androidgames.mrnom/com.badlogic.androidgames.mrnom.MrNomGame}: java.lang.NullPointerException
  6. 0

    Why can't I click a Button in a ListView using SimpleAdapter in android?

    Stack Overflow | 3 years ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.s/com.example.s.MainActivity}: java.lang.NullPointerException

  1. andreeaa marin 8 times, last 3 weeks ago
  2. rp 1 times, last 4 months ago
  3. Indri Yunita 308 times, last 4 days ago
  4. bmacedo 1 times, last 5 months ago
  5. VeryRedChris 23 times, last 5 months ago
48 more registered users
47 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.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()
  2. Android Platform
    ActivityThread.main
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
    3. android.app.ActivityThread.access$800(ActivityThread.java:135)
    4. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
    5. android.os.Handler.dispatchMessage(Handler.java:102)
    6. android.os.Looper.loop(Looper.java:136)
    7. android.app.ActivityThread.main(ActivityThread.java:5017)
    7 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    2 frames
  5. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame