android-app-bundle

How to fix “Program type already present” error when dynamic feature is using an external aar dependency

纵饮孤独 提交于 2020-01-06 06:46:22
问题 We have a 3rd party aar file that due to size considerations we decided to split to a separate dynamic-feature (module). Both main app and dynamic module are using com.google.code.gson:gson when they were in the same module we removed our dependency to gson , but now our main module needs it. The project build is fine, but when we try to build bundle(s) we get a "Program type already present: com.google.gson.FieldNamingPolicy$5" error We tried to exclude gson from the module's gradle: both in

Using an app bundle I get UnsatisfiedLinkError for <1% of users

倾然丶 夕夏残阳落幕 提交于 2020-01-02 02:03:09
问题 I'm trying to use the new Android App Bundles. I run some test locally on my devices, and everything works correctly. However, once deployed to production, I am starting to see a few errors like this: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/xyz/base.apk"],nativeLibraryDirectories=[/data/app/xyz/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libsqlite3x.so" java.lang.Runtime.loadLibrary (Runtime.java) java.lang.System.loadLibrary

Install Android App Bundle on device

ε祈祈猫儿з 提交于 2019-12-31 08:32:52
问题 I built my project using the new Android App Bundle format. With APK files, I can download the APK to my device, open it, and immediately install the app. I downloaded my app as a bundle (.aab format) and my Nexus 5X running Android 8.1 can't open the file. Is there any way to install AABs on devices in the same convenient manner as APKs? 回答1: Short answer: No Longer answer: Android App Bundles is a publishing format. Android devices require .apk files to install applications. The PlayStore

Constraint Layout - Group visibility is not working inside dynamic module

若如初见. 提交于 2019-12-23 20:21:03
问题 Has anyone experienced issues with ConstraintLayout group visibility? I'm using ConstraintLayout 1.1.3 and I'm setting the visibility of group in both XML layout and java code. But it does not change the visibility status. It is always visible. This is the layout file <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas

Android In App Updates - Not able to detect the update in AppUpdateInfo

大兔子大兔子 提交于 2019-12-22 18:19:32
问题 Some log statements are thrown when we use, Task<AppUpdateInfo> appUpdateInfoTask = appUpdateManager.getAppUpdateInfo(); appUpdateInfoTask.addOnSuccessListener(appUpdateInfo -> { 2019-06-13 18:30:40.556 28375-28375/com.marsplay.debug I/PlayCore: UID: [10312] PID: [28375] AppUpdateService : requestUpdateInfo(<"package name here">) 2019-06-13 18:30:40.556 28375-28584/com.marsplay.debug I/PlayCore: UID: [10312] PID: [28375] AppUpdateService : Initiate binding to the service. 2019-06-13 18:30:40

Native libraries not found in ApplicationInfo.nativeLibraryDir when building app bundle for arm64 Android phone

房东的猫 提交于 2019-12-18 08:57:28
问题 I am trying to migrate my app from a monolithic APK to the app bundle format. I need to set LD_LIBRARY_PATH environment variable for an exec() call, therefore I need the location of my native libraries. With the original APK I would call getApplicationInfo().nativeLibDir and the libraries were there. With the app bundle they are not. I can see the correct abi split APK installed , but for some reason the libraries are not extracted. I have tried installing with bundletool and through Google

Difference between apk (.apk) and app bundle (.aab)

北战南征 提交于 2019-12-17 17:55:12
问题 Recently Google brought up a new feature app bundle which is a pretty similar concept to APK except its flexibility and architectural differences. I have read out lots of blog/articles to understand how app bundle works in devices in comparison with APK file. What is the actual internal working process of app bundle and how it works on Android devices starting from Google Play Store? 回答1: App Bundles are a publishing format, whereas APK (Android application PacKage) is the packaging format

Android App bundle Cannot find symbol variable for resource

僤鯓⒐⒋嵵緔 提交于 2019-12-13 04:58:02
问题 I am trying to access the resource which is in base.apk , As documented I am placing all common source and resource in base app. But when I try to access the same from dynamic-module its giving error: cannot find symbol variable <resource> What I have noticed is the R package in the dynamic module is different than the base app. But the IDE is not complaining anything. Appreciate if anyone can help with this issue. Thanks. 回答1: You may try to remove the R import statement generated in the

Building the new app-bundle for android dex errors at runtime

萝らか妹 提交于 2019-12-13 03:13:17
问题 I'm building the new android app-bundle following the instructions at https://developer.android.com/guide/app-bundle/build but I'm getting an error when installing from the play store. 2018-06-04 11:06:09.397 10595-10595/? E/AndroidRuntime: Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: io.org.app.ui.loading.LoadingFragment at androidx.navigation.fragment.b$a.a(FragmentNavigator.java:219) at androidx.navigation.fragment.b$a.a(FragmentNavigator.java:202) at androidx

How to resolve conflict between version codes of splitted apks and bundles?

孤人 提交于 2019-12-13 02:27:15
问题 In the past I used the following configuration in my gradle file for version code generation using apk splitting: splits { abi { enable true reset() include 'x86', 'armeabi', 'armeabi-v7a', 'arm64-v8a' universalApk true } } project.ext.versionCodes = ['armeabi': 1, 'armeabi-v7a': 2, 'arm64-v8a': 3, 'mips': 5, 'mips64' : 6, 'x86': 8, 'x86_64': 9] android.applicationVariants.all { variant -> variant.outputs.each { output -> output.versionCodeOverride = project.ext.versionCodes.get(output