有人知道如何构建一个无错误的FluffyChat安卓apk吗?

huangapple go评论61阅读模式
英文:

Does anyone know how to build an error free FluffyChat android apk?

问题

我正在尝试将FluffyChat客户端构建为Android应用程序,但在尝试时出现了错误,例如:“执行任务':flutter_olm:buildCMakeRelWithDebInfo[arm64-v8a]'失败。”和“FAILED: libolm.so”。

源代码:https://gitlab.com/famedly/fluffychat/-/tree/main

在README上有一个构建教程,即使按照教程进行操作,也会出现这些错误。

有人知道如何构建一个无错误的FluffyChat安卓apk吗?

我尝试安装libolm3库,但仍然无济于事。

英文:

I'm trying to build the FluffyChat client as an android application, but when I try I get errors like: "Execution failed for task ':flutter_olm:buildCMakeRelWithDebInfo[arm64-v8a]'." and "FAILED: libolm.so"

Source Code: https://gitlab.com/famedly/fluffychat/-/tree/main

There is a tutorial on READ ME to build, even following it gives these errors.

有人知道如何构建一个无错误的FluffyChat安卓apk吗?

I tried installing libolm3 library, still to no avail.

答案1

得分: 1

我最近也尝试构建了 FluffyChat 的 Android 版本,并成功地进行了一些次要更新:

关于 libolm3 问题本身,我通过使用来自 tarball(https://docs.flutter.dev/get-started/install/linux)的 Flutter 安装来避免了它,而不是 snap 版本:请参考 https://gitlab.com/famedly/fluffychat/-/issues/1065

然后,我在 pubspec.yaml 文件中更新了 webrtc 存储库:

flutter_webrtc:
- git: https://github.com/radzio-it/flutter-webrtc.git
+ git: https://github.com/flutter-webrtc/flutter-webrtc.git

最后,构建命令当前尝试签署一个 apk,因此您需要一个密钥库和一个引用它的文件(也许您可以找到一种在没有此签名的情况下构建 apk 的方法?)。我只创建了一个 android/key.properties 文件,其内容如下:

storePassword=xxx
keyPassword=xxxx
keyAlias=key
storeFile=/path/to/your/storefile

然后,我运行了以下命令进行构建:

git apply scripts/enable-android-google-services.patch
./scripts/build-android-apk.sh
英文:

I've also tried to build the android version of FluffyChat recently, and managed with a few minor updates:

For the libolm3 issue itself, I managed to avoid it by using the flutter installation from the tarball (https://docs.flutter.dev/get-started/install/linux) instead of the snap version: see https://gitlab.com/famedly/fluffychat/-/issues/1065

Then, I update the webrtc repository in pubsec.yaml file:

   flutter_webrtc:
-    git: https://github.com/radzio-it/flutter-webrtc.git
+    git: https://github.com/flutter-webrtc/flutter-webrtc.git

Finally, the build command currently tries to sign an apk, so you'd need a keystore and a file referencing it (maybe you could find a way to build a debug version of the apk without this signature?.
I just created an android/key.properties file with the content:

storePassword=xxx
keyPassword=xxxx
keyAlias=key
storeFile=/path/to/your/storefile

then I built running the commands:

git apply scripts/enable-android-google-services.patch
./scripts/build-android-apk.sh

huangapple
  • 本文由 发表于 2023年2月16日 12:22:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/75467841.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定