android-instant-apps

Upload failed: Your Instant App APKs should contain at least one base APK

泄露秘密 提交于 2019-12-01 07:33:48
I need to prepare an Alpha testing for an Instant App and It run like a charm on Android Studio but It is failing when I try to upload it to the PlayStore, saying: Upload failed Your Instant App APKs should contain at least one base APK. The app structure is done using three modules: - base : It contains all the code - apk : Wrapper to obtains the installable apk - instantApp : Wrapper to obtain the instantApp apk This are the build.gradles: base/build.gradle buildscript { repositories { jcenter() } } apply plugin: 'com.android.feature' repositories { jcenter() mavenCentral() flatDir { dirs

Instant App module searches for resources in another not base module

筅森魡賤 提交于 2019-12-01 06:59:03
问题 I'm developing an Instant App, that has base module and 2 feature modules: feature1 and feature2 . I'm getting strange crash when I'm trying to launch feature2 activity: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.myapp.qa/com.test.myapp.feature2.ui.activity.Feature2Activity}: android.view.InflateException: Binary XML file line #76: Binary XML file line #76: Error inflating class android.widget.ProgressBar at android.app.ActivityThread.performLaunchActivity

Android Instant Apps: How to debug an instant app?

谁都会走 提交于 2019-12-01 01:58:46
问题 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 Debugger to Android Process" options. What am I missing? 回答1: Basic information about how to use Android Studio debugger to debug an Android app is available at Developer Documentation Debug Your App . Android Studio debugger works normally most of the

Android Instant Apps - Cannot Find Symbol From Base Feature Asset

*爱你&永不变心* 提交于 2019-11-30 18:32:21
问题 I have a base feature module, and a feature module (you could call it the "child"). The base feature module has a strings.xml file asset containing: <resources> <string name="app_string">Test String</string> </resources> I attempt to reference this string resource in the "child" feature's activity, as below: int resId = R.string.app_string; Android Studio appears to respect this reference, and will even direct me to the app_string resource when I click it. However, during compilation, I am

How to expose component from installed app to be visible to instant app?

冷暖自知 提交于 2019-11-30 18:17:39
From the developer document of Instant Apps Installed apps can make themselves available to interact with instant through explicit intents. And later, it is mentioned that instant apps cannot Discover the list of installed apps on the device, unless the installed apps have made themselves discoverable to instant apps . But I can't find the details about how to expose the component of an installed app or any part of an app, for that matter, to be visible (and accessible) by instant app. And any limitation on that? (supported component types and etc.) Oasis Feng At last, I figured out the syntax

Instant App, What's the actual minimum sdk

孤人 提交于 2019-11-30 15:40:34
As per the android developers site, minimum sdk for Instant app is 21, ie 5.0. link The site clearly states : Android Instant Apps are available on the majority of devices running Android 5.0 (API level 21) and higher. But when we create a new project as per the guideline given in this link which states that we need to have minimum sdk of 23, to get instant app support. And does not allow me to create a support for 5.0. as shown in below image which I tried : That requirement exists only in the setup wizard, and it is a bug. If you change the value to something lower after creating the project

Android Instant Apps not running on Pixel

馋奶兔 提交于 2019-11-30 09:52:35
问题 Recently my Pixel started showing the following message: Development Mode Active - URLs will be routed to Dev Manager in order to launch Instant Apps locally. Also, in settings -> apps I can see Google play services for Instant apps. Now, when I tried wish and buzzfeed tasty so that I can run their Instant apps I was taken to their site and not in the Instant app. I built an Instant app in Android Studio 3.0 Canary 4 . It is working fine on the emulator but when I connected my Pixel running

pre-release instant app cannot be launched through dynamic link

核能气质少年 提交于 2019-11-30 05:59:54
问题 Here I developed one app with instant app supported with the document of Android Instant App. The App and Instant App has the same version code, App is published as open beta testing, Instant App is published as pre-release. It's running well on my device, it can be launch through dynamic link in Google App, Chrome, Email, but since several hours ago it always jump to the related web site. I have cleared the both cache data and app data of Google Play Service and Google Play Service for

Instant App, What's the actual minimum sdk

落爺英雄遲暮 提交于 2019-11-29 23:19:20
问题 As per the android developers site, minimum sdk for Instant app is 21, ie 5.0. link The site clearly states : Android Instant Apps are available on the majority of devices running Android 5.0 (API level 21) and higher. But when we create a new project as per the guideline given in this link which states that we need to have minimum sdk of 23, to get instant app support. And does not allow me to create a support for 5.0. as shown in below image which I tried : 回答1: That requirement exists only

Android Instant Apps not running on Pixel

六月ゝ 毕业季﹏ 提交于 2019-11-29 17:30:23
Recently my Pixel started showing the following message: Development Mode Active - URLs will be routed to Dev Manager in order to launch Instant Apps locally. Also, in settings -> apps I can see Google play services for Instant apps. Now, when I tried wish and buzzfeed tasty so that I can run their Instant apps I was taken to their site and not in the Instant app. I built an Instant app in Android Studio 3.0 Canary 4 . It is working fine on the emulator but when I connected my Pixel running on android 7 it shows the following error - Side loading instant app failed: Reading bundle timed out.