Apk Upload failed:Your Instant App APKs do not declare a valid 'android:targetSandboxVersion' attribute in their AndroidManifest

99封情书 提交于 2019-12-25 16:07:32

问题


I'm trying to upload a version of the instant app sample code to the market with no success. I keep getting the following error:

Your Instant App APKs do not declare a valid 'android:targetSandboxVersion' attribute in their AndroidManifest

Thanks,


回答1:


What 'vyndor' says is correct. The AndroidManifest.xml file that needs to include it is the one for the "base" feature.

If you use Android Studio 3.0 Canary 4, the android:targetSandboxVersion attribute should be set for you automatically.




回答2:


You have 2 options:

  1. Target API 25.
  2. Add android:targetSandboxVersion="2" to your AndroidManifest <manifest> tag.


来源:https://stackoverflow.com/questions/44498364/apk-upload-failedyour-instant-app-apks-do-not-declare-a-valid-androidtargetsa

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