I have a normal installable app on my git main branch. Now I want to create an Instant version of that game on a branch. I have done everything as described here. And at version-codes it also says:
It's OK to develop your instant app and your installable app in two separate Android Studio projects.
This is, I guess, the same as having a separate branch.
This is what I have changed:
AndroidManifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.my.app.package"
xmlns:dist="http://schemas.android.com/apk/distribution"
android:targetSandboxVersion="2">
<dist:module dist:instant="true" />
<application ...>
<meta-data android:name="com.google.android.gms.instant.flavor" android:value="1337"/>
...
</application>
</manifest>
The targetSandboxVersion
, dist:module
and the meta-data
.
In build.gradle I have added implementation "com.google.android.gms:play-services-instantapps:17.0.1"
and set versionCode
to 1.
But when I upload the app bundle it says that versionCode 1
is already used. But according to the quote above I think it should be possible to upload a bundle that only has the instant version. Am i doing something wrong?