you need to use a theme.appcompat theme (or descendant) with this activity 解决办法
2015-05-28 11:01
639 查看
当你想隐藏
![](https://oscdn.geek-share.com/Uploads/Images/Content/202009/21/86f565129ea42e6ac1f06cf8206d1535)
Androidmanifest.xml
类文件:
出现的异常:
![](http://blog.csdn.net/xuqingfeng77/article/details/file:/C:\Users\Administrator\Documents\Tencent Files\513237381\Image\C2C\1(%OQT[SHESM4(VM_}YOCV6.png)
![](http://blog.csdn.net/xuqingfeng77/article/details/file:/C:\Users\Administrator\Documents\Tencent Files\513237381\Image\C2C\1(%OQT[SHESM4(VM_}YOCV6.png)
![](http://blog.csdn.net/xuqingfeng77/article/details/file:/C:\Users\Administrator\Documents\Tencent Files\513237381\Image\C2C\1(%OQT[SHESM4(VM_}YOCV6.png)
![](https://oscdn.geek-share.com/Uploads/Images/Content/202009/21/b4b359ed0d5349f1192caa41902c95d7)
解决办法如下:
类文件:
Androidmanifest.xml
<activity android:name=".MainActivity" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
类文件:
public class MainActivity extends ActionBarActivity i
出现的异常:
![](http://blog.csdn.net/xuqingfeng77/article/details/file:/C:\Users\Administrator\Documents\Tencent Files\513237381\Image\C2C\1(%OQT[SHESM4(VM_}YOCV6.png)
![](http://blog.csdn.net/xuqingfeng77/article/details/file:/C:\Users\Administrator\Documents\Tencent Files\513237381\Image\C2C\1(%OQT[SHESM4(VM_}YOCV6.png)
![](http://blog.csdn.net/xuqingfeng77/article/details/file:/C:\Users\Administrator\Documents\Tencent Files\513237381\Image\C2C\1(%OQT[SHESM4(VM_}YOCV6.png)
解决办法如下:
<activity android:name=".MainActivity" android:label="@string/app_name" android:theme="@style/Theme.AppCompat.NoActionBar" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
类文件:
public class MainActivity extends Activity
相关文章推荐
- you need to use a theme.appcompat theme (or descendant) with this activity 解决办法
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决办法
- 使用ActionBar,调整Theme时遇到You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- 关闭 You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- 解决Android: You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- 使用AlertDialog报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.之解决
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- 【我的Android进阶之旅】解决bug:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- 【已解决】You need to use a Theme.AppCompat theme (or descendant) with this activity
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- 使用AlertDialog报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.之解决
- 我的Android进阶之旅------>解决错误:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- Android解决在清单文件里消除Bar报错:You need to use a 原来Theme.AppCompat theme (or descendant) with this activity.
- 【Android】You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法