android-instant-apps

Creation Of App Bundle For Instant App Module Is Not Possible

僤鯓⒐⒋嵵緔 提交于 2019-12-02 00:46:36
I have set up an app as an instant app based on this guides: https://codelabs.developers.google.com/codelabs/android-instant-apps/index.html?index=..%2F..index#6 and https://developer.android.com/topic/google-play-instant/getting-started/feature-plugin So I have now 2 modules (installed & instant). If I try to create an app bundle, then I'm not able to select the instant module, because the module selection is disabled in my case. Running of the instant app is working as expected. Is it even possible to create an app bundle from an instant app module? If yes, then what could be the problem?

INVALID_ARGUMENT: Application credential header not valid. Please fix the client to pass a valid application credential header

和自甴很熟 提交于 2019-12-01 23:48:16
When attempting to run a simple Android Instant App, I receive this error in the console and the app does not open. What does this error mean and how do I pass in a valid credential header? There's a known issue where emulators are not allowed to talk to the Instant Apps backend, resulting in this error. If you try to use the emulator to launch a published instant app, it'll fail for this reason. We've also seen it on some physical devices, but it's very inconsistent there. When running an instant app locally, you may still see this error, but it's not the root cause. The loader tries to fall

Unable to build feature modules in a multi-flavor app

廉价感情. 提交于 2019-12-01 18:12:03
I am using Gradle 4.4 with Gradle-Android plugin 3.1.1 on Android Studio 3.1.1. I have 2 flavors 'a' and 'b' and I am unable to build my project due to the following error: Cannot choose between the following configurations of project :app: - aDebugMetadataElements - bDebugMetadataElements All of them match the consumer attributes: - Configuration 'aDebugMetadataElements': - Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'. - Found com.android.build.api.attributes.VariantAttr 'aDebug' but wasn't required. - Required com.android.build.gradle

Android Instant Apps - Can not “Run unverified software, run arbitrary native code”. Only Instant Apps runtime

不羁的心 提交于 2019-12-01 16:45:44
Android Instant Apps documentation states in the restricted features section that it can not: Run unverified software, run arbitrary native code, or load code dynamically other than the code provided by the Instant Apps runtime . I don't fully understand the above statement but it sounds to me like it may not accept any third party software or any native libraries other than libraries given in SDK/NDK . Could someone help to elaborate? Julia K This statement: Prepare your app > Restricted features Run unverified software, run arbitrary native code, or load code dynamically other than the code

Android Instant Apps - Can not “Run unverified software, run arbitrary native code”. Only Instant Apps runtime

大兔子大兔子 提交于 2019-12-01 15:28:03
问题 Android Instant Apps documentation states in the restricted features section that it can not: Run unverified software, run arbitrary native code, or load code dynamically other than the code provided by the Instant Apps runtime . I don't fully understand the above statement but it sounds to me like it may not accept any third party software or any native libraries other than libraries given in SDK/NDK . Could someone help to elaborate? 回答1: This statement: Prepare your app > Restricted

Separate manifest for instant app

大憨熊 提交于 2019-12-01 12:39:22
问题 Can I use different manifests for instant app and a regular application? In more detail, I need to specify different classes "App" in the "android:name=App" field (application tag). 回答1: There are a few ways to do this: If you must have two different manifests, then you will need to use tools:replace , example: Your installed-app module’s manifest: <application android:name="com.example.App" tools:replace="android:name"/> Your feature module’s manifest: <application android:name="com.example

Android: Instant app showing just white screen

百般思念 提交于 2019-12-01 11:52:44
I was trying to make an basic Hello world instant app. For that I am following https://developer.android.com/topic/instant-apps/getting-started/first-instant-app.html I have set up everything as per the doc, but I am not able to get my app running properly. All I am getting is a white screen SDK updated Output Even I am not getting any thing meaningful from logcat output also 06-29 11:37:14.376 5419-5431/? I/DevAtomProvider: Dev Manager providing jar from /data/user/0/com.google.android.instantapps.devman/cache/iapk_atoms/com.example.myfourthinstantapplication/atom-download--feature

Not able to launch Gallery from Android Instant app

こ雲淡風輕ζ 提交于 2019-12-01 10:50:21
I created an app which picks up images from images folder in emulator and displays selected image in my layout of application. When I converted my app to instant app, the same code that picks up images from image folder throws exception. I used runtime permissions READ_EXTERNAL_STORAGE. My code: private static final int PICK_IMAGE_REQUEST = 234; Intent intent = new Intent(); intent.setType("*/*"); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(intent, PICK_IMAGE_REQUEST); Exception thrown: java.lang.SecurityException: Not allowed to start activity Intent { act=android

Android: Instant app showing just white screen

南笙酒味 提交于 2019-12-01 09:48:50
问题 I was trying to make an basic Hello world instant app. For that I am following https://developer.android.com/topic/instant-apps/getting-started/first-instant-app.html I have set up everything as per the doc, but I am not able to get my app running properly. All I am getting is a white screen SDK updated Output Even I am not getting any thing meaningful from logcat output also 06-29 11:37:14.376 5419-5431/? I/DevAtomProvider: Dev Manager providing jar from /data/user/0/com.google.android

Instant Apps - Error:org.gradle.process.internal.ExecException: Process 'command' finished with non-zero exit value 1

六眼飞鱼酱① 提交于 2019-12-01 08:03:19
问题 I am trying to build my first instant app which was introduced in Google IO 2017. I have downloaded Google Instant Apps SDK and target minSDKVersion to 23 I created a first project and I am facing below errors while trying to build it. Is there anyone who is also facing same errors for building Instant apps ? Is this because of some bug in build process of them ? Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :base