7

I have a project that has min sdk 16 and I would like to add support to instant apps. Is it possible to add that feature to mine project? I also detect that I can't create a new project with option "Include Instant App support" to sdk < 23:

enter image description here

So I suppose that also not possible to add that feature to the existing project with min sdk < 23.

I will be very grateful if the answer will contain a link to the information.

Onregs
  • 420
  • 3
  • 16
  • 2
    Per @IntelliJAmiya's answer, there's no build or runtime restriction on minSdkVersion. This looks like a mis-feature to me. I filed a bug: https://issuetracker.google.com/issues/64980390. Since it only affects the New Project Wizard, it's easily worked around by changing the minSdkVersion later. – philo Aug 23 '17 at 19:58
  • As per the latest updates, this issue is already fixed in latest AS versions. Please recheck. – ManmeetP Nov 06 '17 at 05:11
  • 1
    Checked on Android Studio 3.0.1, and the problem is still there. – Jack Cheung Nov 28 '17 at 02:19
  • @JackCheung can you check https://stackoverflow.com/questions/45835370/instant-apps-min-sdk-version?answertab=active#tab-top and accept if it work for you. – Prags Dec 13 '17 at 06:51
  • Confirmed: it's fixed in 3.1 Canary 5 – Jack Cheung Jan 01 '18 at 17:24

4 Answers4

5

The Android App Links feature was introduced in Android 6.0 and lets users tap on a web link to open your app (if it is already installed). Instant apps leverage the same app links feature to create HTTPS URLs that launch activities in your instant app.

Courtesy goes to philo's Answer

There's no required minimum. 15 is fine. But FYI, your app won't run on 15. The Instant Apps runtime itself isn't compatible that far back. At the moment, that only goes back to 23 (but we're working on that).

IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198
  • Are you sure? Check this: https://stackoverflow.com/questions/44774512/minsdkversion-for-instantapp-support – Gabriele Mariotti Aug 23 '17 at 09:17
  • 1
    Yes, that's correct (and thanks for the shout out!) If your project has a lower minSdkVersion, it'll build and run fine. – philo Aug 23 '17 at 19:54
0

According to the Android Instant Apps: Android Instant Apps supports the latest Android devices from Android 6.0 (API level 23) through Android O, across more than 40 countries. We'll be rolling out to more devices and countries soon, including expanding support to Android 5.0 (API level 21) devices shortly.

FYI : https://developer.android.com/topic/instant-apps/faqs.html

StackUseR
  • 884
  • 1
  • 11
  • 40
0

This page teaches you how to build and run a very simple instant app using Android Studio. Android Instant App

Manish Karena
  • 724
  • 6
  • 29
0

With reference SO answer and android documentation Currently it has been fixed with android studio 3.1 Canary 5

enter image description here enter image description here

Prags
  • 2,457
  • 2
  • 21
  • 38