App install failed - new target sandbox 1 is incompatible with previous value of 2

こ雲淡風輕ζ 提交于 2019-12-11 07:31:55

问题


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.


回答1:


Got it working.

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

Hope it helps someone.




回答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).



来源:https://stackoverflow.com/questions/45089209/app-install-failed-new-target-sandbox-1-is-incompatible-with-previous-value-of

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