Questions tagged [android-instant-apps]

Android Instant Apps are special kind of native mobile apps that can be run instantly on Android device, without prior installation, just by clicking on a web link - or the Try Now button in the Play Store. Use this tag for questions about Android Instant Apps development, debugging and deployment. Consider adding [android] tag as well.

Android Instant Apps were presented during Google I/O 2016 as a way of launching native Android applications without requiring a user to install them. Instant Apps are launched by simply clicking on a web link.

Resources

Android Instant Apps introduction

Frequently Asked Questions

Preparing your app

Code samples

540 questions
6
votes
2 answers

Clicking on app link is not opening instant app directly

When I click on app link, it's showing me this screen I was expecting the instant app to be opened directly. Any help would be appreciated
Viswanath Kumar Sandu
  • 2,230
  • 2
  • 17
  • 34
6
votes
1 answer

unable to refer app module classes in dynamic feature module when running unit test cases

Our project has dynamic feature module with a dependency on the app module. The classes in the dynamic feature module have a dependency on app module. We also have unit test cases in the dynamic module testing individual classes of the dynamic…
6
votes
2 answers

Android Studio - Instant App - Manifest merging error

I have problem with my Android Studio Instant App Project. If I select Manifest.xml in /app directory then select Merger Manifest then I have such error: Merging Errors: Error: Attribute…
Michał Ziobro
  • 10,759
  • 11
  • 88
  • 143
6
votes
2 answers

Instant app Internal test behavior

I uploaded an instant app on internal test track and created a tester list with 3 testers. I send the opt-in URL to all testers and they accepted the inviation to be a tester. I uploaded assetlinks.json to my website (www.example.com) and added…
karan vs
  • 3,044
  • 4
  • 19
  • 26
6
votes
2 answers

Firebase support library dependency conflict for instant apps

I'm trying to implement instant apps into a project that uses Firebase database. I'm targeting SDK version 27, so the support libraries are on version 27.0.2. Firebase database version is 11.8.0 and gms version is 3.1.0. When I try to sync, I get…
6
votes
3 answers

instant app getting below 4mb difficulties. how to reduce apk size

I am running into difficulties getting the apk below 4mb. after inspecting the generated instant app APK(s) i see that com.google.android.gms.internal is almost 1.4mb. i just cannot find the cause of this large chunk. Must be somekind of…
6
votes
3 answers

Kapt not generating classes in Instant app feature module

I am using dagger2 in my android application. It is not generating dagger component classes even though there is no errors. I have enabled the annotation processors in the setttings and restart my android studio but that didn't work for me. I read…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
6
votes
2 answers

Android Instant Apps: How to debug an instant app?

When I debug my instant app on Android Studio, the debugger attaches to instant app process and pauses execution at most breakpoints. However it seems to ignore breakpoints at my main activity's onCreate method. I've tried "Debug" and "Attach…
6
votes
4 answers

Android Emulator is not running on Android Studio 3.0

I am trying to create a demo instant app which was demonstrated at Google IO 2017. I see, this needs Android Studio 3.0 and latest build tools and only few devices are white-listed to use this newly introduced concept. Here, you can see that I have…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
5
votes
1 answer

Instant app, Try Now button does not appear in play store

i started with following github projects but these example are not working properly. I added missing parts as stated in the…
oiyio
  • 5,219
  • 4
  • 42
  • 54
5
votes
1 answer

Android KeyStore crashes in Android Instant App

val masterKey = MasterKey .Builder(applicationContext) .setKeyScheme(MasterKey.KeyScheme.AES256_GCM) .build() Running this code in an Instant App crashes my app with the following Stack…
5
votes
0 answers

Android instant & installable app set different version code

I have an android app with instant feature. I want to set versionCode 1 for instant app and versionCode 1000 for installable app. I have 3 build.gradle for base, installed and instant feature. base app defaultConfig { applicationId…
Bratin
  • 51
  • 1
  • 3
5
votes
0 answers

Firebase Dynamic Link Not Redirecting To Instant App

I'm using Firebase Dynamic Links with the android instant app and but instead of redirecting to the instant app it is opening the URL in the browser. I tried adding the "afl" param but it is also not working. Can anyone help? Thanks in advance.
5
votes
1 answer

Is it possible for a dynamic feature module to depend on another dynamic feature module?

I have a modular project which contains a base module (base) and two others modules (A & B) which depends on base. It works. Now, I want to add a new module C which depends on B and base. So I create a dynamic feature module C and add this in its…
Simon
  • 318
  • 1
  • 2
  • 8
5
votes
2 answers

Instant app with Dynamic Features always show Disambiguation dialog with 1 option

I'm experimenting with Dynamic Features and Instant Apps. To navigate between various features, I use Deep Links. Each time I navigate to another Activity, I see the disambiguation dialog for less than 1 second, with 1 app listed. Notice how the…