1

We are preparing to publish instant app apks to play store via "Instant app development" channel for testing purpose. When we sign instant app (using same keystore used for Installed App), only geting one feature module apk inside zip folder(instant-release.zip) which giving error while uploading to Play Store by complaining "Your Instant App APKs should contain at least one base APK"

Anyway we able to see the expected structure under instant-debug version

Structure deference between debug and release version as below

instant-debug.zip

  • hello-debug.apk
  • base-debug.apk
  • bye-debug.apk

instant-release.zip

  • hello-release.apk

And not sure whether we making any mistake on gradle configuration. It will very helpful if anyone can advise on this ?

4

2 回答 2

2

使用 Android Studio 3.0 预览版中的内置菜单对即时应用进行签名存在一些已知问题。signingConfigs如果您在build.gradle文件中进行设置,然后gradle assembleRelease从命令行或 Studio 中的 gradle 菜单(右侧一个)运行,它应该可以工作。

signingConfigs应该在您的每个功能模块中设置,以确保所有功能APKs都已签名。

以下是有关设置的一些信息signingConfigs

https://developer.android.com/studio/publish/

于 2017-06-05T11:11:55.453 回答
0

您必须单独签署所有模块,包括 baseFeature 模块。通过进入他们的 gradle 文件来签署所有这些。我遇到了同样的错误,然后我签署了所有模块,它对我有用。

于 2017-06-05T08:38:06.660 回答