问题
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:
- Target API 25.
- 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