Home > Software design >  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.loginpanel2/com.examp
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.loginpanel2/com.examp

Time:07-01

enter image description here

When I run my application, I get an "Application Stopped" error.

CodePudding user response:

Your crash is caused by the theme of activity. If you are using AppCompatActivity You need to set...

android:theme="@style/Theme.YourTheme"

to your manifest(application or activity).

If your activity extends Activity, No need to add it to your manifest, and the crash will not happen.

  • Related