创建新的活动增加了它在Eclipse中扩展,而不是ActionBarActivity类活动类活动 [英] Create New Activity adds an activity which extends Activity class instead of ActionBarActivity class in Eclipse

查看:91
本文介绍了创建新的活动增加了它在Eclipse中扩展,而不是ActionBarActivity类活动类活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个新手,Android和我下面就安卓教程.developer.com ,当一个新的活动创造增加其默认扩展ActionBarActivity一个活动,但是当我 创建一个新的活动默认情况下它扩展Activity类

I am a newbie to android and I was following the tutorial on android.developer.com,Where a new Activity creation adds an activity which extends ActionBarActivity by default,but When i create a new Activity it extends Activity class by default

我也试图闵API 4.1果冻豆和目标设定为4.4 ActionBarActivity是在以后的API可用,但它没有工作,我已经从网站上下载了ADT包

I have also tried to set the Min API to 4.1 Jelly Bean and target to 4.4 as ActionBarActivity is available in later API but it didn't work,I have downloaded the Adt bundle from the site

推荐答案

当您在Eclipse中创建新的项目,你应该选择分要求14岁以下的SDK从ActionBarActivity延长。 检查:<一href="http://stackoverflow.com/questions/22369992/android-adt-bundle-automatically-extending-actionbaractivity-and-adding-fragment/22370547#22370547">android ADT束自动延长ActionBarActivity和增加碎片和更多的东西?

When you create new project in eclipse, you should select min required SDK below 14 to extend from ActionBarActivity. Check this: android adt bundle automatically extending ActionBarActivity and adding fragments and more stuff?

这篇关于创建新的活动增加了它在Eclipse中扩展,而不是ActionBarActivity类活动类活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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