java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.malith.testcrowd/com.example.malith.testcrowd.NewWorkOrderActivity}: java.lang.ClassCastException: android.app.Application cannot be cast to com.example.malith.testcrowd.TestCrowd

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    i can't get jsonObject from another class by using "TestCrowd.java"

    Stack Overflow | 2 months ago | Dms Malith Disanayake
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.malith.testcrowd/com.example.malith.testcrowd.NewWorkOrderActivity}: java.lang.ClassCastException: android.app.Application cannot be cast to com.example.malith.testcrowd.TestCrowd
  2. 0

    ImageButton cannot be cast to android.widget.Edittext

    Stack Overflow | 3 years ago | user2636390
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.markitberry/com.example.markitberry.Login}: java.lang.ClassCastException: android.widget.ImageButton cannot be cast to android.widget.EditText
  3. 0

    Android RuntimeException: Unable to instantiate activity

    Stack Overflow | 3 years ago | user2781812
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.jsonapp/com.example.jsonapp.GetWeather}: java.lang.ClassCastException: com.example.jsonapp.GetWeather cannot be cast to android.app.Activity
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GoogleApiClient.Builder.enableAutoManage() giving me an error

    Stack Overflow | 7 months ago | McFiddlyWiddly
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.googlelogin/com.example.android.googlelogin.MainActivity}: java.lang.ClassCastException: com.example.android.googlelogin.MainActivity cannot be cast to com.google.android.gms.common.api.GoogleApiClient$OnConnectionFailedListener
  6. 0

    upload image(blob) to specific container in azure

    Stack Overflow | 4 years ago | Teo Chuen Wei Bryan
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.testproject/com.example.testproject.Report}: java.lang.ClassCastException: android.app.Application cannot be cast to com.example.testproject.StorageApplication

  1. Indri Yunita 7 times, last 1 month ago
  2. andreeaa marin 184 times, last 2 months ago
  3. Reich 59 times, last 2 months ago
  4. gamebusterz 40 times, last 2 months ago
  5. Emrah Küçük 3 times, last 3 months ago
42 more registered users
14 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{com.example.malith.testcrowd/com.example.malith.testcrowd.NewWorkOrderActivity}: java.lang.ClassCastException: android.app.Application cannot be cast to com.example.malith.testcrowd.TestCrowd

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
    2 frames