0

I am trying to upload my instant app with targetSdkVersion 25 and my installed app is also with targetSdkVersion 25. When I try to upload my instant app on play console, I am getting the following error,

enter image description here

I do not see in documentation that it is mandatory to support targetSdkVersion 26. What am I missing here ?

I cannot update my targetSdkVersion to 26 since targetting for my installable and instant app should be same. My installable app must have targetSdkVersion of 25 for now due to a dependency. Can I upload my instant app with targetSdkVersion of 25 ?

karan vs
  • 3,044
  • 4
  • 19
  • 26

2 Answers2

0

Read Prepare your development environment.

  • Android SDK Build-Tools 26.x or higher
  • Android SDK Platform Tools 25.x or higher
  • Android SDK Tools (latest)

You should set

compileSdkVersion 27
buildToolsVersion '27.0.3' 

And

defaultConfig {
       targetSdkVersion 26
     }

As Android evolves with each new version, some behaviors and even appearances might change. However, if the API level of the platform is higher than the version declared by your app's targetSdkVersion, the system may enable compatibility behaviors to ensure that your app continues to work the way you expect.

IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198
  • 1
    Even if I do that, is still gives me an error for targetSdkVersion since mine is set to 25. – karan vs Jun 18 '18 at 06:05
  • @karanvs `Can I upload my instant app with targetSdkVersion of 25 ?` Nope. You must set `26` . – IntelliJ Amiya Jun 18 '18 at 06:37
  • @karanvs Solved this yet? – IntelliJ Amiya Jun 18 '18 at 11:29
  • nope, it is no where specified that Instant app should support targetSdkVersion of 26. This restriction is to be applied for new apps from August 1 and for app updates from Nov 1, 2018. I contacted google support for this, they have no answer to this and is actively looking for a solution. – karan vs Jun 18 '18 at 13:41
0

For those who are still wondering about this issue. Google imposed a restriction that both Instant app and install-able app should target at least 26.

karan vs
  • 3,044
  • 4
  • 19
  • 26