问题
I have set up an app as an instant app based on this guides: https://codelabs.developers.google.com/codelabs/android-instant-apps/index.html?index=..%2F..index#6 and https://developer.android.com/topic/google-play-instant/getting-started/feature-plugin
So I have now 2 modules (installed & instant). If I try to create an app bundle, then I'm not able to select the instant module, because the module selection is disabled in my case.
Running of the instant app is working as expected.
Is it even possible to create an app bundle from an instant app module?
If yes, then what could be the problem?
回答1:
Your installed and instant app are all contained in that one bundle.
Then just upload that bundle into one of your Instant tracks. (note!! it must be one of your Instant tracks, not the regular app tracks)
Yes, while that first statement is not super clear, this is how it is.
If you need some extra guidance on how to upload/publish your bundles, see bits at:
- Deliver apps and features on demand with the Android App Bundle
- instant-enabled-app-bundle#publish
- Upload your app bundle to the Play Console
- Build and deploy Android App Bundles
Also, if you are also publishing your installed app from the same bundle, then after uploading to to your instant track, you can go to the installed track and select "ADD FROM LIBRARY".
来源:https://stackoverflow.com/questions/54152235/creation-of-app-bundle-for-instant-app-module-is-not-possible