安卓ADT束自动延长ActionBarActivity和增加碎片和更多的东西? [英] android adt bundle automatically extending ActionBarActivity and adding fragments and more stuff?

查看:113
本文介绍了安卓ADT束自动延长ActionBarActivity和增加碎片和更多的东西?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想做一个简单的Hello World应用程序,扩展了活动,但是当我创建一个新的Andr​​oid项目其添加所有这些额外的东西。它并没有采用之前做到这一点,但现在每次我创建它延伸ActionBarActivity并创建一个片段布局和具有code的片段和其不再是简单的项目,我曾经是能够创建一个项目。

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.

我该如何解决这个问题?

How do I fix this?

推荐答案

我也有同样的问题,这是我的固定它。

I too had the same problem and this is how I fixed it.

在创建新的Andr​​oid应用程序项目中,选择最低要求的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.

这篇关于安卓ADT束自动延长ActionBarActivity和增加碎片和更多的东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆