java.lang.RuntimeException

Unable to start activity ComponentInfo{br.com.pontov/br.com.pontov.AndPongActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2 663) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:26 79)

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 web1824

  • Stack trace

    • java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.pontov/br.com.pontov.AndPongActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2 663) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:26 79) at android.app.ActivityThread.access$2300(ActivityThread.java:125) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521)

    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
    162 more bugmates