java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.admin.test_purpose/com.example.admin.test_purpose.MainActivity}: java.lang.NullPointerException

  1. 0

    Fatal Exception while initiating app

    Stack Overflow | 4 months ago | Nilesh Indalkar
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.admin.test_purpose/com.example.admin.test_purpose.MainActivity}: java.lang.NullPointerException
  2. 0

    android manifest being choosey

    Stack Overflow | 3 years ago | Ollygrov
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android Developing App crashes on startup

    Stack Overflow | 4 years ago | alexnavratil
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.teamdroid.explorer/com.teamdroid.explorer.MainActivity}: java.lang.NullPointerException
  5. 0

    In eclipse, android app crashes when declaring variables

    Stack Overflow | 4 years ago | llsiddhantll
    java.lang.NullPointerException

  1. ivotje50 3 times, last 3 months ago
  2. brunosatriani 1 times, last 5 months ago
  3. shameer 1 times, last 8 months ago
3 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.NullPointerException

    No message provided

    at android.app.Activity.findViewById()
  2. Android Platform
    Activity.findViewById
    1. android.app.Activity.findViewById(Activity.java:1825)
    1 frame
  3. com.example.admin
    MainActivity.<init>
    1. com.example.admin.test_purpose.MainActivity.<init>(MainActivity.java:15)
    1 frame
  4. Java RT
    Class.newInstance
    1. java.lang.Class.newInstanceImpl(Native Method)
    2. java.lang.Class.newInstance(Class.java:1319)
    2 frames
  5. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Instrumentation.newActivity(Instrumentation.java:1053)
    2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1974)
    2 frames