Can I use different manifests for instant app and a regular application?
In more detail, I need to specify different classes "App" in the "android:name=App"
field (application tag).
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
To help you start with, here is a sample code from github about instant apps. You can check the structure of the code below:
Here is the Manifest file structure to help you further in your build stage.
There are a few ways to do this:
If you must have two different manifests, then you will need to use
tools:replace
, example:Your installed-app module’s manifest:
Your feature module’s manifest:
When your installed-app is built, it will run with
App
, and when your instant-app is built, it will run withAppFeat
. You can play with variations of this.But it would be easier if you use isInstantApp() to branch off, in just one Application implementation.