Does an Android Library need a manifest ,app_name,Icon?

前端 未结 2 1594
天命终不由人
天命终不由人 2021-02-06 21:31

I have an android Library that outputs an aar library. This library will be built into different projectFlavors of Mobile, TV and Wear apps. I think that each of these platforms

2条回答
  •  南方客
    南方客 (楼主)
    2021-02-06 21:45

    Any android library needs to have an AndroidManifest.xml file, but a name or an icon is not required. It's only needed when there is an activity that is MAIN and LAUNCHER.

    You simply could use this manifest and your library will work like a charm.

    
    
    
        
    
        
    
    
    

提交回复
热议问题