Unable To Start Activity Componentinfo You Need To Use A Theme.appcompat Theme With This Activity.
why my unable to start my manactivity so please find the solution in my programm errors are coming in the program are java.lang.RuntimeException: Unable to start activity Comp
Solution 1:
1- You should delete style.xml in values-v21 folder 2- your style.xml in values folder
<?xml version="1.0" encoding="utf-8"?><resources><!--
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
--><stylename="AppBaseTheme"parent="Theme.AppCompat.Light.DarkActionBar"><!-- API 14 theme customizations can go here. --><itemname="colorPrimary">#ff0000</item></style></resources>
and AndroidManifest.xml
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppBaseTheme" >
</application>
good luck :)
Solution 2:
If you are extending ActionBarActivity in your MainActivity, you will have to change the parent theme in values-v11 also. So the style.xml in values-v11 will be -
<!-- res/values-v11/themes.xml --><?xml version="1.0" encoding="utf-8"?><resources><stylename="QueryTheme"parent="@style/Theme.AppCompat"><!-- Any customizations for your app running on devices with Theme.Holo here --></style>
Post a Comment for "Unable To Start Activity Componentinfo You Need To Use A Theme.appcompat Theme With This Activity."