android-instant-apps

Instant Apps Camera Intent

百般思念 提交于 2019-12-07 06:41:29
问题 I developed and Instant App which one I would like to take a picture with the camera. Everything work if I launch the Installed App . But with Instant App , I get the following error : java.lang.SecurityException: Not allowed to start activity Intent { act=android.media.action.IMAGE_CAPTURE launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } Here my code : AndroidManifest.xml <uses-permission android:name="android.permission.CAMERA" /> Activity : private static int CAMERA_REQUEST =

Kapt not generating classes in Instant app feature module

末鹿安然 提交于 2019-12-07 03:38:40
问题 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 this thread too Dagger2 not generating Daggercomponent classes and read on one thread that apt is deprecated so I am using annotationProcessor Base Module build.gradle apply plugin: 'com.android.feature' apply plugin: 'kotlin-android' apply plugin:

Is there an Android build flag to check for APK versus Instant App version of an App

坚强是说给别人听的谎言 提交于 2019-12-07 03:06:17
问题 Just like BuildConfig.FLAVOR and BuildConfig.DEBUG is there a build flag to check at runtime for the APK version or the Instant App version of an Android application ? Or is there another way to get the information ? 回答1: Add to the module build.gradle the dependency : implementation 'com.google.android.instantapps:instantapps:1.0.0' then you will be able to use the function InstantApps.isInstantApp(this) . Please note that you must use Maven Google by changing your repositories in the

Google Play Console: Package name of your Instant App APKs should be the same as your app's package name

耗尽温柔 提交于 2019-12-06 07:12:32
I'm trying to upload into develop my Instant App with Google Play Console, but it returns an error: Package name of your Instant App APKs should be the same as your app's package name. I have a feature call base , the apk and the instantApp feature too, everyone has its own gradle file and the apk and the instantApp implements the base feature: dependencies { implementation project(':base') } I try to publish the .apk building by Build/Generate signed APK... with the same key of the installable App and it creates a file .apk compressed on zip I don't know what happends cause the instantApp and

Android Production Instant App not showing “Try Now” button in google playstore

十年热恋 提交于 2019-12-06 06:30:31
问题 I have uploaded an installable app and added an instant app in playstore. Everything went smooth. No errors. And moved both of that to production. But try now button is not enabled. Only thing I can able to see is Install button. Also my app link url is also leading to web not instant app. Can some one please help me out. 回答1: Playstore will take nearly a day to reflect "try now" button in the play store for your instant app. Probably it's because it needs to index your url to all Google

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

泄露秘密 提交于 2019-12-06 04:49:33
问题 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 dependency. My base manifest file looks like: dependencies { api "com.android.support:design:$rootProject.supportLib" api "com.android.support:support-fragment:$rootProject.supportLib" api "com.android.support:appcompat-v7:$rootProject.supportLib" api "com

IllegalStateException: Expected configuration ':module:debugFeatureCompileClasspath' to contain exactly one file, however, it contains 2 files

有些话、适合烂在心里 提交于 2019-12-06 01:21:53
I am working with multi feature android application with instant app and wear app.Here i am able to successfully run my application but getting following error during building APK or rebuild projects . java.lang.IllegalStateException: Expected configuration ':module1:debugFeatureCompileClasspath' to contain exactly one file, however, it contains 2 files. at org.gradle.api.internal.file.AbstractFileCollection.getSingleFile(AbstractFileCollection.java:62) at com.android.build.gradle.tasks.MergeManifests.doFullTaskAction(MergeManifests.java:116) at com.android.build.gradle.internal.tasks

Build error with Android Studio 3.0 Canary 4

雨燕双飞 提交于 2019-12-05 18:09:04
I am currently in the process of developing an Instant app, for which I have restructured my monolithic app into feature modules. Everything was up and running till Android Studio canary 3, but after an update to Android Studio Canary 4 my project fails to build with the following error: A problem was found with the configuration of task ':minimoBase:dataBindingExportBuildInfoDebugAndroidTest'. > Directory '/Users/nayak.vishal/projectData/minimo_instant_app_project/putica-client-android- native/minimoBase/build/intermediates/data-binding-info/androidTest/debug' specified for property

Android Instant app not working in my Beta Pre Release testing through the app link

一个人想着一个人 提交于 2019-12-05 17:36:23
I have my Instant App on Beta pre release but I am not able launch the Instant App through the app link. Instead it is taking me to the web browser. Any help? I keep having the same issue myself. My solution has been to go to your Instant Apps settings and toggle Instant Apps off and back on again. You should be able to get there via Settings -> Google -> Instant Apps Similar problem as pre-release instant app cannot be launched through dynamic link If you already tested with alpha or local, please check your distribution area as listed in that question. 来源: https://stackoverflow.com/questions

Android Instant App - Play Console release/deploy error and DAL(digital Asset Link) not linked

孤街醉人 提交于 2019-12-05 16:40:20
I'm trying to figure out why the play store will not accept my instant app build. I have successfully deployed an Alpha regular app release to testers since it is a prerequisite to release an instant app. I am trying to deploy a development release instant app. What am I doing wrong? I tried to add as much detail as possible. Do I need to use the Digital Asset Link API service at the following link for a production instant app or is that for something else? https://console.developers.google.com/apis/api/digitalassetlinks.googleapis.com/overview I get the following error when uploading the