android-instant-apps

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

我与影子孤独终老i 提交于 2019-12-19 09:06:16
问题 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 {

Android Instant App : Default Activity not found

帅比萌擦擦* 提交于 2019-12-19 05:23:57
问题 This seems to be manifest merging error. I'm trying to port existing code to instant app module. What I've tried is : Changed main app module to baseFeatureModule. Created a new module completeApp. Emptied completeAppModule's Manifest : added implementation project entry in completeAppModule implementation project (":udofy") Added these entries in base module : baseFeature true in android block application project (":fullModule") in dependencies I've tried rebuilding/ invalidate cache and

Android: Can you add activities to the Instant App module?

走远了吗. 提交于 2019-12-18 09:44:31
问题 I'm trying to create an Instant App, but wanted to know if I can add an activity to my Instant App module. When creating an Instant App module, the android studio wizard doesn't give you the option to add an activity either and was wondering if it is just supposed to be empty. I've tried adding an activity manually, but ran into some build issues. Before I give up I just wanted to ask if an empty Instant App module is how it's designed to be and only supposed to rely on the base feature

Opening Google Play in popup (like Vimeo, Wisher, Buzzfeed) - Instant App

独自空忆成欢 提交于 2019-12-18 06:19:34
问题 How to open Google Play in popup like Wisher, Buzzfeed, Vimeo? I looked at Google documentation, but there is only about opening by Google Play app ( market:// ) or by a browser ( http:// ). I would like to open inside my instant app in order to install full app like on screens. 回答1: I think you're looking for showInstallPrompt. 回答2: TL;DR: InstantApps.showInstallPrompt(activity, postInstallIntent, Constants.INSTALL_INSTANT_APP_REQUEST_CODE, referrerString); At Vimeo we're using Branch for

Firebase Analytics not working with Instant App or Normal App

99封情书 提交于 2019-12-18 05:56:05
问题 I have an app that is modularized to support instant-apps. App modules: app instantapp base main detail search I tried to add Firebase by adding: classpath ' com.google.gms:google-services:3.1.1 ' → to the Project Level build.gradle api " com.google.firebase:firebase-core:${versions.firebase} " → to the Base Module apply plugin: ' com.google.gms.google-services ' → to the bottom of the Base Module google-services.json → to the base module folder When I run the non-instant app I receive the

shrinkResources true can't be used on Instant Apps Feature?

让人想犯罪 __ 提交于 2019-12-18 04:43:24
问题 When I try to shrink my Feature APK size, I use shrinkResources true in my feature Build Gradle. However it complaints Error:Resource shrinker cannot be used for libraries. This article ask us to use it https://medium.com/jet-stories/make-your-app-instant-33855ab5d02b Did I do something wrong or is this really not supported by Instant Apps? 回答1: From what I understand from the article (I've just read it quickly, still pending in my reading list), shrinkResources true is only needed to reduce

Android Instant App Play Store Errors

♀尐吖头ヾ 提交于 2019-12-17 20:31:47
问题 Whenever I upload my base and feature APKs to Play Store I got these errors : You must provide a default URL for your Instant App APKs. Learn More Your site 'www.example.com' has not been linked through the Digital Assets Link protocol to your app. Please link your site through the Digital Assets Link protocol to your app. You should have at least one active APK that is mapped to site 'www.example.com' via a web 'intent-filter'. And here is my manifest file : ( EDITED ) <manifest xmlns

Instant App - Digital Asset Links Protocol

自作多情 提交于 2019-12-17 19:33:31
问题 Whenever I tried to upload my instant app apks to Play store, it gives the following error : Your site 'www.mywebsitename.com' has not been linked through the Digital Assets Link protocol to your app. Please link your site through the Digital Assets Link protocol to your app. However, whenever I execute https://developers.google.com/digital-asset-links/tools/generator, it gives success for associating with my app and web site. Any idea why am I getting this error? What may cause this? Thanks

How do I integrate Crashlytics with Android Instant Apps?

*爱你&永不变心* 提交于 2019-12-17 12:15:24
问题 Does Crashlytics work with Google Play Instant and if so, how do you setup your project correctly? 回答1: Yes, Crashlytics does work with Android Instant Apps, in fact it is the recommended crash reporting solution at this stage as it has been tested and works fine. For setup: Step 1 Open the build.gradle file in your base feature module and follow the steps on the public docs site to configure Crashlytics as normal. Step 2 At the top level of your base feature module build.gradle file, add the

Google Play Console error - Non-upgradable to installed app

谁说胖子不能爱 提交于 2019-12-17 09:49:02
问题 I developed an instant app apk basing on google tutorials and samples. When I'm trying to start rollout to production, I see one error: Non-upgradable to installed app PROBLEM Some users of this Instant App APKs will not be eligible for any of the APKs in your installed app. RESOLUTION Ensure that the targeting of your Instant App APKs matches the targeting of your APKs. Project structure: There are two scenarios, 1st: base - baseFeature, minSdk 18, targetSdk 26 application project(':apk')