Upload failed: Your Instant App APKs should contain at least one base APK

后端 未结 2 1828
南旧
南旧 2021-01-14 01:14

I need to prepare an Alpha testing for an Instant App and It run like a charm on Android Studio but It is failing when I try to upload it to the PlayStore, saying:

相关标签:
2条回答
  • 2021-01-14 01:32

    Yeah!!! I found the issue!!!!(and its not in any of the google help documents)

    The issue was that I was dropping the instantApp apk file straight away. The solution is to create a zip file with the instantApp apk and the base apk and drop that zip file!!!

    Thanks for your help!!! At the end the issue wasnt gradle or the code..it was the PlayStore :)

    I hope that if anyone has the same problem this question can help them!!!

    0 讨论(0)
  • 2021-01-14 01:33

    This sample project seems to be pretty close to what you're trying to achieve. Perhaps you don't need the application project(":apk") in your base/build.gradle since you only have one feature (and that is the base split). You could also try removing base = true.

    This section of the docs covers your use case - but it sounds like everything is set up correctly.

    Could you also add your AndroidManifests to your original post?

    0 讨论(0)
提交回复
热议问题