There will be a merge operation when executing the processManifest task during compilation. The merged AndroidManifest.xml will be in the build/intermediates/manifests/ directory of the main Module. Generally, those that are not repeated will be merged directly. Those that conflict will be taken according to the priority of the dependency order. , the highest priority is the main Module
application’s
AndroidManifest.xml
会直接继承library的AndroidManifest.xml
. For example:Declared
android.permission.INTERNET
in the library, then the application does not need to declare it anymore.Declare
Activity
/Service
and other components in the library, then the application does not need to be declared anymore.In addition, you can check whether it is handled in this way. Apps such as Explorer / FX can directly view the apk.
apktool
工具解包来查看AndroidManifest.xml
There will be a merge operation when executing the processManifest task during compilation. The merged AndroidManifest.xml will be in the build/intermediates/manifests/ directory of the main Module. Generally, those that are not repeated will be merged directly. Those that conflict will be taken according to the priority of the dependency order. , the highest priority is the main Module
Incremental addition, application tag is invalid