android-app-bundle

Install Android App Bundle on device

两盒软妹~` 提交于 2019-12-02 18:43:21
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? Short answer: No Longer answer: Android App Bundles is a publishing format. Android devices require .apk files to install applications. The PlayStore or any other source that you're installing from needs to extract apks from the bundle, sign each one and then

There is no “Generate Signed Bundle” menu optin in my android studio

馋奶兔 提交于 2019-12-02 04:36:12
I would like to try Android's App Bundle feature. However, when I would like to make my own app bundle, I cannot because t here is no such menu option in my Android Studio , see pic below. The official youtube video about this topic shows the following: I have also added android.enableAapt2=true to my gradle.properties file, just as the official sources say, also restarted Gradle daemon, also restarted Android Studio: Note: Android Studio requires AAPT2 to build app bundles, which is enabled for new projects by default. However, to make sure it is enabled on existing projects, include android

In App update not working for app bundle apk

佐手、 提交于 2019-12-01 03:32:54
问题 I have implemented recently launched In-App update API in my android app. When I build apk and test this functionality it works fine. ( I have uploaded apk with higher version with beta track). But when I build app bundle and upload the app bundle to internal internal app sharing , App update dialog is never prompted. (same source code only difference is in first case apk and in second case via app bundle). 回答1: In-App updates are not yet supported with internal app sharing. We are working on

How to fix “Gradle build failed to produce an Android bundle package.” in Flutter

半腔热情 提交于 2019-11-30 23:40:27
问题 On running flutter build appbundle I am getting the following error: Gradle build failed to produce an Android bundle package. When running in verbose mode this is what I additionally get: #0 throwToolExit (package:flutter_tools/src/base/common.dart:24:3) #1 _buildGradleProjectV2 (package:flutter_tools/src/android/gradle.dart:585:7) <asynchronous suspension> #2 buildGradleProject (package:flutter_tools/src/android/gradle.dart:331:14) <asynchronous suspension> #3 buildAppBundle (package

Invalid SplitApkBundle. The bundle targets unknown languages: [gr]. google play console

橙三吉。 提交于 2019-11-30 06:52:47
Android app bundle upload failed with error Invalid SplitApkBundle. The bundle targets unknown languages: [gr] Android Studio version 3.5 I tried Clean & rebuild Invalidate cache/restart RavenYang I had the same issue. Invalid SplitApkBundle. The bundle targets unknown languages:[cb] I solved by setting DSL to stop aapt package building the wrong language targets. My app supports English and Chinese, therefore resConfigs only needs en and zh. defaultConfig { ... resConfigs "en", "zh-rTW", "zh-rCN" } Apply this to Android{} bundle { density { // Different APKs are generated for devices with

Android App Bundle with in-app locale change

﹥>﹥吖頭↗ 提交于 2019-11-29 03:04:31
I've a problem with AAB when I need to change the app locale from within the app itself(i.e. have the language change setting inside the app), the issue is that the AAB gives me only my device languages resources, for example: my device has English and French languages installed in it, so AAb gives me only the resources for English and French, but from within the app itself there is a choice to switch the language between English, French, and Indonesian, in that case, when changing the language to English or French everything is working perfectly, but when changing it to Indonesian, the app

How to change the generated filename for App Bundles with Gradle?

感情迁移 提交于 2019-11-28 12:03:10
So to change the generated APK filename inside gradle android I could do something like: applicationVariants.output.all { outputFileName = "the_file_name_that_i_want.apk" } Is there a similar thing for the generated App Bundle file? How can I change the generated App Bundle filename? As a more generic way to Martin Zeitlers answer the following will listen for added tasks, then insert rename tasks for any bundle* task that gets added. Just add it to the bottom of your build.gradle file. Note: It will add more tasks than necessary, but those tasks will be skipped since they don't match any

Android App Bundle introduces Resource Not found crash in Android app

限于喜欢 提交于 2019-11-27 07:34:10
By using android new Android App Bundle i have found Resource Not Found Crashes in 2 of my google play store apps :- Here is the stacktrace from fabric for one of the app:- Unable to start activity ComponentInfo{/com.Lastyear.MainActivity}: android.content.res.Resources$NotFoundException: File res/drawable/abc_item_background_holo_dark.xml from drawable resource ID #0x7f08002c at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2377) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2429) at android.app.ActivityThread.access$800(ActivityThread.java:151)

Android App Bundle with in-app locale change

人盡茶涼 提交于 2019-11-27 02:35:20
问题 I've a problem with AAB when I need to change the app locale from within the app itself(i.e. have the language change setting inside the app), the issue is that the AAB gives me only my device languages resources, for example: my device has English and French languages installed in it, so AAb gives me only the resources for English and French, but from within the app itself there is a choice to switch the language between English, French, and Indonesian, in that case, when changing the

How to change the generated filename for App Bundles with Gradle?

北慕城南 提交于 2019-11-26 23:13:55
问题 So to change the generated APK filename inside gradle android I could do something like: applicationVariants.output.all { outputFileName = "the_file_name_that_i_want.apk" } Is there a similar thing for the generated App Bundle file? How can I change the generated App Bundle filename? 回答1: As a more generic way to Martin Zeitlers answer the following will listen for added tasks, then insert rename tasks for any bundle* task that gets added. Just add it to the bottom of your build.gradle file.