android adt bundle自动扩展ActionBarActivity并添加片段和更多的东西? [英] android adt bundle automatically extending ActionBarActivity and adding fragments and more stuff?
问题描述
我只想制作一个简单的Hello World应用程序来扩展Activity,但是当我创建一个新的android项目时,它会添加所有这些额外的东西。它以前没有使用过,但是现在每次创建一个项目时,它都会扩展ActionBarActivity,并创建一个片段布局,并为片段提供代码,而不再是我以前可以创建的简单项目。
I just want to make a simple Hello world app that extends Activity but when I create a new android project it add all this extra stuff. It didn't use to do it before,but now everytime I create a project it extends ActionBarActivity and creates a fragment layout and has code for fragments and its no longer the simple project I used to be able to create.
我如何解决这个问题?
推荐答案
我也有同样的问题,如何修复它。
I too had the same problem and this is how I fixed it.
当您创建新的Android应用程序项目时,选择最低必需SDK作为API 14或更高版本。
When you create new Android Application Project, select Minimum Required SDK as API 14 or above.
如果你想要支持API级别14您可以在创建项目后手动更改AndroidManifest.xml中的minSdkVersion。
If you want to support API level < 14 you can change the "minSdkVersion" in AndroidManifest.xml manually after creating the project.
这篇关于android adt bundle自动扩展ActionBarActivity并添加片段和更多的东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!