简体   繁体   English

单个Android项目中如何有两个AndroidManifest.xml文件

[英]How can it be two AndroidManifest.xml files on a single android project

I learned that in every project we have only 1 AndroidManifest.xml file. 我了解到,在每个项目中,我们只有1个AndroidManifest.xml文件。 BUT I found two of the same file name !! 但是我发现两个相同的文件名! One is in the root folder, and the other is in the /bin folder... 一个在根文件夹中,另一个在/ bin文件夹中...

How come, and what shell I do ? 怎么会来,我要做什么外壳?

thx ! 谢谢 !

project/bin folder is for compiled (to bytecode) source code and project resources. project / bin文件夹用于编译(至字节码)源代码和项目资源。

Do not worry about it, your IDE is handling content of bin folder automaticly. 不用担心,您的IDE会自动处理bin文件夹的内容。 When all code is compilled, your IDE (I think, it is Eclipse) can build your project. 编译完所有代码后,您的IDE(我认为是Eclipse)可以构建您的项目。

When your project builds, it creates a copy of itself for execution in the bin folder. 构建项目时,它将创建其自身的副本以在bin文件夹中执行

You can ignore everything in the bin folder as its automatically generated and it doesn't require any edit directly of you . 您可以忽略bin文件夹中的所有内容,因为它是自动生成的, 不需要您直接进行任何编辑

The only AndroidManifest.xml you have to worry about is the one in your root project directory 唯一需要担心的AndroidManifest.xml是您的根项目目录中的一个

One is created by the developer (the one in root folder) and the other one (the one in /bin) is created by eclipse or whatever IDE you are using. 一个由开发人员创建(一个在根文件夹中),另一个(由/ bin创建)由eclipse或您使用的任何IDE创建。

The other one is a compiled binary. 另一个是已编译的二进制文件。 This is totally fine. 很好 You don't have to do anything. 您不必做任何事情。 Continue developing! 继续发展!

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

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