我最近更新日食,SDK和我的问题是
I recently updated eclipse, SDK and my problems are
在默认情况下,需要 fragment_main.xml
在扩展默认活动 ActionBarActivity
在默认情况下它被添加库 appcompat 7
By default it takes fragment_main.xml
Extends default activity to ActionBarActivity
By default it is adding the library appcompat 7
我没有任何问题,增加了图书馆,但是当我试图运行,那么它是不是在执行设备(2.3版Android)。我注意到了这一点,并改为活动。
I dont have any issues with adding the library, but when i am trying to run then it is not executing in the device(2.3 android). I noticed it and changed to Activity.
如果我将其扩展到活动并运行它,然后重新下一次,同时创造新的活动一样......同样的问题出现了。
If i extends it to Activity and run it and again for the next time the same problem arises while creating new Activity like...
2创建XML文件扩展ActionBarActiity。
Creating 2 xml files with extending ActionBarActiity.
我只希望新的类来扩展活动
而不是 ActionBarActivity
在我的目标设备是2.3及以上的无降级它
I just want the new class to extend Activity
but not ActionBarActivity
where my target device is 2.3 and above without downgrading it
它有SDK V4.4。这是一个加点的开发,因为开发者不需要手动添加ActionBarActivity到他们的项目。有两个解决您的问题。
It comes in SDK v4.4 . It is a plus point for developers because developers don't need to manually add the ActionBarActivity into their project. There are two solutions for your problem.
降级SDK 4.3或更低。 或 删除ActionBarActivity和你的java文件扩展活动。 Downgrade your SDK to 4.3 or lower. or Remove ActionBarActivity and extends Activity in your java file.这两个会为你工作。