1

I'm getting this error when trying to install the installed app on a device with the instant app installed. I've set targetSandboxVersion as 2 for both the instant and installed app but still get this error. What could be the issue?

I checked the apk manifests, there's the targetSandboxVersion attribute in the application tag for both the apps but only the instant app apk has the targetSandboxVersion attribute in the manifest tag also. Sharing in case it is helpful.

enter image description here

Rahul Sainani
  • 3,437
  • 1
  • 34
  • 48

2 Answers2

3

Got it working.

Had to add android:targetSandboxVersion="2" in the manifest tag instead of the application tag.

Hope it helps someone.

Rahul Sainani
  • 3,437
  • 1
  • 34
  • 48
2

Go to Android Settings on the device/emulator, go to Apps, scroll to your app and tap, then tap "Clear app" to remove the existing app with android:targetSandboxVersion="2". Then you can deploy your debug/prod version of your app with android:targetSandboxVersion="1" (the default value is "1" if you don't specify it explicitly).

Randy Sugianto 'Yuku'
  • 71,383
  • 57
  • 178
  • 228