错误 java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
将style文件中加
<style name="Theme.AppCompat.Light.NoActionBar" parent="@style/Theme.AppCompat.Light">
<item name="android:windowNoTitle">true</item>
</style>
在AndroidManifest.xml中配置
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
例如:
<application
android:name="com.txunda.ecityshop.application.MyApplication"
android:allowBackup="true"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" >