简体   繁体   English

如何在没有appcompat_v7的情况下创建新项目

[英]how can I create a new project without appcompat_v7

I am unable to get why appcompat_v7 is created automatically... finding it very irritating.. please someone help to get rid off this problem. 我无法理解为什么appcompat_v7是自动创建的...发现它非常恼人..请有人帮助摆脱这个问题。 I tried to create new project and found like this for every newly created project. 我尝试创建新项目,并为每个新创建的项目找到这样的项目。

When creating new Android Project, remove the check in front of "Create activity". 创建新的Android项目时,请删除“创建活动”前面的检查。 By doing this, Eclipse will not automatically import the library project "appcompat_v7". 通过这样做,Eclipse将不会自动导入库项目“appcompat_v7”。 Then you manually have to create main activity. 然后您手动必须创建主要活动。 Be careful what imports you use if you have stuff like Fragment or ActionBar . 如果你有像FragmentActionBar这样的东西,请注意你使用的导入。

This is very useful. 非常有用。

Hope this helps! 希望这可以帮助! :) :)

在创建应用程序时,请将API 14:Android 4.0或较高版本作为最低SDK版本。

the reason why Eclipse does this is because there is a lot of fragmentation in different vendors and versions of android and the same reflects in the API's too..!! Eclipse之所以这样做是因为在不同的供应商和Android版本中存在很多碎片,这也反映在API中...... !! So in order keep everything going smooth Android suggests adding external libraries to the project and Eclipse abides to the same. 因此,为了保持一切顺利,Android建议在项目中添加外部库,Eclipse也遵循相同的规则。

You can get rid of it if you have built, target and compile level as same, using minimum SDK above 7 shall also do the trick. 如果你的构建,目标和编译级别相同,你可以摆脱它,使用7以上的最小SDK也可以做到这一点。

refer Why does Eclipse automatically add appcompat v7 library support whenever I create a new project? 参考为什么Eclipse在创建新项目时会自动添加appcompat v7库支持?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM