Android Instant-release build not includes base APK

…衆ロ難τιáo~ 提交于 2020-01-03 02:37:24

问题


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 ?


回答1:


There are some known issues signing Instant Apps using the built-in menus in Android Studio 3.0 Preview. If you set up signingConfigs in your build.gradle files then run gradle assembleRelease from command line or from the gradle menu in Studio (one on the right side) it should work.

signingConfigs should be setup in each of your feature modules to ensure all feature APKs are signed.

Here's some info on setting up signingConfigs:

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




回答2:


You have to sign all the modules including the baseFeature module separately. Sign all of them by going in their gradle file. I was getting the same error then I signed all the modules and it worked for me.



来源:https://stackoverflow.com/questions/44361206/android-instant-release-build-not-includes-base-apk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!