假设我们的项目中有不同的功能模块,并且其中一项按需功能发生了代码更改。现在我想知道的是,我们是否可以仅针对代码更改的功能构建 .aab(android 应用程序包)或 .apk 并将其上传到 Playstore,而不是再次构建整个应用程序并上传 .aab 文件。并且只有更新的功能才会下载到用户手机中,而不是再次下载整个应用程序。
android google-play google-play-services android-app-bundle google-play-core
我使用的是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) 所以我目前正在尝试创建一个应用程序包,以便我可以将我的应用程序上传到谷歌游戏商店。不幸的是,我在项目的签名发布部分遇到了问题。以下是来自终端的错误的副本:
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) 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 应用程序包而不是 Jenkins 中的 apk。我如何配置我的 Jenkins 来构建 aab 而不是 apk
在最近尝试将现有应用程序的新版本 apk 上传到 PlayStore 时,抛出了一条警告消息,如下所述
那么问题是,是否必须只上传 aab 文件到 PlayStore,还是普通的 apk 文件也可以更新。
如果需要上传aab文件,那么上传前如何对aab文件进行签名。
我引用了此链接用于Google 应用程序签名。这也需要吗?
笔记:
开发的应用程序是cordova 应用程序。那么,如果上述事情是强制性的,那么为 cordova 应用程序构建的过程是否有所不同?
提前致谢 !
android cordova google-play-services cordova-android android-app-bundle
所以我有几个共享通用代码的功能 - 让我们称它们为“feature1”和“feature2”。我无法将共享代码添加为“feature1”和“feature2”的依赖项 - Android studio 抛出以下错误:
多个 APK 打包同一库可能会导致运行时错误。将上述库添加为基本模块的依赖项将通过将库与基本 APK 一起打包来解决此问题。
所以我想我只是创建另一个动态功能模块 - 让我们称之为“核心” - 在那里传递共享依赖项。这也有效,有点。我可以从“feature1”和“feature2”内的“core”访问所有java类,但是一旦我想访问资源,我就会得到一个ResourceNotFoundException。这些功能是传递调用SplitCompat.install(context)其onAttach()函数的片段。
所以我的问题是 - 是否有可能有一个存储公共代码的动态功能模块,或者这一切都应该放在应用程序中?
感谢和问候, 罗曼斯基
我在终端命令中 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
如何生成签名包?
我想将 Flutter 项目的签名应用程序包上传到 Google Play。
环境
我做了什么
android google-play android-studio flutter android-app-bundle
android ×9
apk ×3
flutter ×3
dart ×2
google-play ×2
android-ndk ×1
cordova ×1
gradle ×1
jenkins ×1