标签: android-app-bundle

当功能发生代码更改时,我们是否可以仅发布动态功能模块,而不是再次发布整个应用程序?

假设我们的项目中有不同的功能模块,并且其中一项按需功能发生了代码更改。现在我想知道的是,我们是否可以仅针对代码更改的功能构建 .aab(android 应用程序包)或 .apk 并将其上传到 Playstore,而不是再次构建整个应用程序并上传 .aab 文件。并且只有更新的功能才会下载到用户手机中,而不是再次下载整个应用程序。

android google-play google-play-services android-app-bundle google-play-core

4
推荐指数
1
解决办法
903
查看次数

无法在 Android 中将应用程序包转换为 APK

我使用的是Android Studio 3.4.1。我试图使用捆绑工具将应用程序捆绑包转换为 APK。我无法生成 APK 文件。我尝试使用 从 aab 文件生成 Apk 文件(android 应用程序包)

当我运行命令时

java -jar bundletool.jar build-apks  --bundle=app.aab --output=app.apks
Run Code Online (Sandbox Code Playgroud)

我收到以下错误。请建议我一个生成 APK 的解决方案。

INFO: The APKs will be signed with the debug keystore found at 'C:\Users\~\
.android\debug.keystore'.
[BT:0.10.2] Error: com.android.tools.build.bundletool.model.Aapt2Command$Aapt2Ex
ception: Command '[C:\Users\~\AppData\Local\Temp\8658885577631656545\output
\windows\aapt2.exe, convert, --output-format, binary, -o, C:\Users\~\AppDat
a\Local\Temp\6789457478435634974\binary.apk, C:\Users\~\AppData\Local\Temp\
6789457478435634974\proto.apk]' didn't terminate successfully (exit code: -10737
41701). Check the logs.
java.lang.RuntimeException: com.android.tools.build.bundletool.model.Aapt2Comman
d$Aapt2Exception: Command '[C:\Users\~\AppData\Local\Temp\86588855776316565
45\output\windows\aapt2.exe, convert, --output-format, binary, -o, C:\Users\Yamu
na\AppData\Local\Temp\6789457478435634974\binary.apk, C:\Users\~\AppData\Lo
cal\Temp\6789457478435634974\proto.apk]' didn't terminate successfully (exit cod …
Run Code Online (Sandbox Code Playgroud)

android apk android-app-bundle

4
推荐指数
1
解决办法
5126
查看次数

构建Appbundle(Flutter)时密钥库密码不正确

所以我目前正在尝试创建一个应用程序包,以便我可以将我的应用程序上传到谷歌游戏商店。不幸的是,我在项目的签名发布部分遇到了问题。以下是来自终端的错误的副本:

FAILURE: Build failed with an exception.                                

* What went wrong:                                                      
Execution failed for task ':app:packageRelease'.                        
> com.android.ide.common.signing.KeytoolException: Failed to read key key from store "/Users/herb/Downloads/morningly/android/app/key.jks": keystore password was incorrect
Run Code Online (Sandbox Code Playgroud)

我对这个错误背后的思考过程是,我设置 key.properties 的方式或 app/build.gradle 中的某些内容存在错误。以下是两个文件:

Key.properties
Run Code Online (Sandbox Code Playgroud)
storePassword=<REDACTED>
keyPassword=<REDACTED>
keyAlias=key
storeFile=key.jks
Run Code Online (Sandbox Code Playgroud)

app/build.gradle

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in …
Run Code Online (Sandbox Code Playgroud)

android gradle dart flutter android-app-bundle

4
推荐指数
1
解决办法
8904
查看次数

您上传的文件不是格式正确的 zip 存档

当我尝试释放 aab 时,出现此错误。请有人帮助我。我该如何解决它。
单击蓝色链接查看图像
错误图像

android apk google-play-console android-app-bundle

4
推荐指数
1
解决办法
4107
查看次数

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

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 …

android android-ndk android-studio android-app-bundle

3
推荐指数
1
解决办法
617
查看次数

如何从 Jenkins 创建 aab 而不是 apk

我想将我的个人应用程序配置为构建为 android 应用程序包而不是 Jenkins 中的 apk。我如何配置我的 Jenkins 来构建 aab 而不是 apk

android apk jenkins android-app-bundle

3
推荐指数
1
解决办法
3894
查看次数

是否必须上传aab(Android App Bundle)而不是APK文件

在最近尝试将现有应用程序的新版本 apk 上传到 PlayStore 时,抛出了一条警告消息,如下所述

在此输入图像描述

  1. 那么问题是,是否必须只上传 aab 文件到 PlayStore,还是普通的 apk 文件也可以更新。

  2. 如果需要上传aab文件,那么上传前如何对aab文件进行签名。

我引用了此链接用于Google 应用程序签名。这也需要吗?

笔记:

开发的应用程序是cordova 应用程序。那么,如果上述事情是强制性的,那么为 cordova 应用程序构建的过程是否有所不同?

提前致谢 !

android cordova google-play-services cordova-android android-app-bundle

3
推荐指数
1
解决办法
1万
查看次数

Android动态功能模块依赖关系

所以我有几个共享通用代码的功能 - 让我们称它们为“feature1”和“feature2”。我无法将共享代码添加为“feature1”和“feature2”的依赖项 - Android studio 抛出以下错误:

多个 APK 打包同一库可能会导致运行时错误。将上述库添加为基本模块的依赖项将通过将库与基本 APK 一起打包来解决此问题。

所以我想我只是创建另一个动态功能模块 - 让我们称之为“核心” - 在那里传递共享依赖项。这也有效,有点。我可以从“feature1”和“feature2”内的“core”访问所有java类,但是一旦我想访问资源,我就会得到一个ResourceNotFoundException。这些功能是传递调用SplitCompat.install(context)onAttach()函数的片段。

所以我的问题是 - 是否有可能有一个存储公共代码的动态功能模块,或者这一切都应该放在应用程序中?

感谢和问候, 罗曼斯基

android android-app-bundle dynamic-feature-module

3
推荐指数
1
解决办法
4624
查看次数

错误:在颤振中找不到类型“ui.TextHeightBehavior”

我在终端命令中 flutter build appbundle 时遇到问题

编译器消息:

    ../../flutter/packages/flutter/lib/src/widgets/basic.dart:5149:9: Error: Type 'ui.TextHeightBehavior' not found.
      final ui.TextHeightBehavior textHeightBehavior;                       
            ^^^^^^^^^^^^^^^^^^^^^                                           
    ../../flutter/packages/flutter/lib/src/widgets/text.dart:149:9: Error: Type 'ui.TextHeightBehavior' not found.
      final ui.TextHeightBehavior textHeightBehavior;                       
            ^^^^^^^^^^^^^^^^^^^^^                                           
    ../../flutter/packages/flutter/lib/src/widgets/text.dart:432:9: Error: Type 'ui.TextHeightBehavior' not found.
      final ui.TextHeightBehavior textHeightBehavior;                       
            ^^^^^^^^^^^^^^^^^^^^^                                           
    ../../flutter/packages/flutter/lib/src/rendering/paragraph.dart:78:5: Error: Type 'ui.TextHeightBehavior' not found.
        ui.TextHeightBehavior textHeightBehavior,                           
        ^^^^^^^^^^^^^^^^^^^^^                                               
    ../../flutter/packages/flutter/lib/src/rendering/paragraph.dart:281:3: Error: Type 'ui.TextHeightBehavior' not found.
      ui.TextHeightBehavior get textHeightBehavior => _textPainter.textHeightBehavior;
      ^^^^^^^^^^^^^^^^^^^^^                                                 
    ../../flutter/packages/flutter/lib/src/rendering/paragraph.dart:282:26: Error: Type 'ui.TextHeightBehavior' not found.
      set textHeightBehavior(ui.TextHeightBehavior value) {                 
                             ^^^^^^^^^^^^^^^^^^^^^                          
    ../../flutter/packages/flutter/lib/src/painting/text_painter.dart:145:5: Error: Type 'ui.TextHeightBehavior' not found.
        ui.TextHeightBehavior textHeightBehavior,                           
        ^^^^^^^^^^^^^^^^^^^^^                                               
    ../../flutter/packages/flutter/lib/src/painting/text_painter.dart:346:3: Error: Type …
Run Code Online (Sandbox Code Playgroud)

dart flutter android-app-bundle flutter-channel flutter-build

3
推荐指数
1
解决办法
2800
查看次数

无法在 Android Studio 上生成签名包

如何生成签名包?

我想将 Flutter 项目的签名应用程序包上传到 Google Play。

环境

安卓工作室版

我做了什么

  1. 转到 Build > Flutter > Build App Bundle
  2. 创建一个 aab 文件并将其上传到 Google Play。
  3. 收到此消息:“您上传了在调试模式下签名的 APK 或 Android App Bundle。您需要在发布模式下对您的 APK 或 Android App Bundle 进行签名。”
  4. 转到此页面(https://developer.android.com/studio/publish/app-signing#signing-manually
  5. 找到此指令:“单击构建 > 构建 > 生成签名包/APK”。
  6. 但是,我在“build”中没有找到“Generate Signed Bundle/APK”。(我被卡在这里了。)

菜单

Google Play 错误消息

android google-play android-studio flutter android-app-bundle

3
推荐指数
2
解决办法
3399
查看次数