java.lang.RuntimeException

Unable to start activity ComponentInfo{com.example.jaisonjoseph.newsclient/com.example.jaisonjoseph.newsclient.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

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 web4214

  • via GitHub by rameshvoltella
    ,
  • Stack trace

    • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.jaisonjoseph.newsclient/com.example.jaisonjoseph.newsclient.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2118) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2143) at android.app.ActivityThread.access$700(ActivityThread.java:140) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:174) at android.app.ActivityThread.main(ActivityThread.java:4952)

    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

    filipebatistafilipebatista
    9 times, last one
    SacchiSacchi
    37 times, last one
    Hiren AmaliyarHiren Amaliyar
    2 times, last one
    Indri YunitaIndri Yunita
    252 times, last one
    AravindAravind
    9 times, last one
    207 more bugmates