[GH-ISSUE #6959] [Bug] building on windows succeed,but i cant build android #3081

Closed
opened 2026-03-23 21:27:26 +00:00 by mirror · 3 comments
Owner

Originally created by @Stiuk on GitHub (Dec 10, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6959

Bug Description

I followed the steps to debug Windows successfully,but i buildwith AF-Android:Clean + ReBuild All failed,The log is as follows.

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!

  • Terminal will be reused by tasks, press any key to close it.

  • Executing task: cargo make --profile development-android appflowy-core-dev-android

[cargo-make] INFO - cargo make 0.37.23
[cargo-make] INFO -
[cargo-make] INFO - Project: dart-ffi
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: appflowy-core-dev-android
[cargo-make] INFO - Profile: development-android
[cargo-make] INFO - Execute Command: "cargo" "make" "--disable-check-for-updates" "--no-on-error" "--loglevel=info" "--profile=development-android" "--makefile" "E:\VSCODE\appflowy\frontend\Makefile.toml" "appflowy-core-dev-android"
[cargo-make][1] INFO -
[cargo-make][1] INFO - Project: dart-ffi
[cargo-make][1] INFO - Build File: E:\VSCODE\appflowy\frontend\Makefile.toml
[cargo-make][1] INFO - Task: appflowy-core-dev-android
[cargo-make][1] INFO - Profile: development-android
[cargo-make][1] INFO - Running Task: echo_env
"-------- Env Parameters --------"
CRATE_TYPE: cdylib
BUILD_FLAG: debug
TARGET_OS: android
RUST_COMPILE_TARGET:
FEATURES: dart,openssl_vendored
PRODUCT_EXT: apk
APP_ENVIRONMENT: local
BUILD_ARCHS:
BUILD_VERSION:
[cargo-make][1] INFO - Running Task: install_flutter_protobuf
[cargo-make][1] INFO - Skipping Task: env_check
[cargo-make][1] INFO - Running Task: set-app-version
APP_VERSION: 0.7.6
[cargo-make][1] INFO - Running Task: setup-crate-type
[cargo-make][1] INFO - Running Task: set-app-version
APP_VERSION: 0.7.6
[cargo-make][1] INFO - Running Task: sdk-build-android
系统找不到指定的路径。
'_FLAG" = "debug" ]; then' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'煔€' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'ndk' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'cho' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
error: Failed to load Cargo.toml in current directory.
error: cargo metadata exited with an error: error: could not find Cargo.toml in E:\VSCODE\appflowy\frontend or any parent directory

'fi' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
[cargo-make][1] INFO - Running Task: post-mobile-android
🚀 🚀 🚀 AppFlowy-Core for Android platform build success
💻 💻 💻 Copying E:\VSCODE\appflowy\frontend/rust-lib/jniLibs/ to E:\VSCODE\appflowy\frontend/appflowy_flutter/android/app/src/main/
[cargo-make][1] ERROR - Error while running duckscript: Source: Unknown Line: 9 - Path does not exist.
[cargo-make][1] WARN - Build Failed.
[cargo-make] INFO - Running Task: restore-crate-type
[cargo-make] ERROR - Task error detected, exit code: 1
[cargo-make] WARN - Build Failed.

How to Reproduce

run task AF-Android:Clean + ReBuild All

Expected Behavior

build success

Operating System

windows 11

AppFlowy Version(s)

0.7.6

Screenshots

1733827788833

Additional Context

i checked the environments and its all good,and windows all right too

Originally created by @Stiuk on GitHub (Dec 10, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6959 ### Bug Description I followed the steps to debug Windows successfully,but i buildwith AF-Android:Clean + ReBuild All failed,The log is as follows. Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source! * Terminal will be reused by tasks, press any key to close it. * Executing task: cargo make --profile development-android appflowy-core-dev-android [cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - [cargo-make] INFO - Project: dart-ffi [cargo-make] INFO - Build File: Makefile.toml [cargo-make] INFO - Task: appflowy-core-dev-android [cargo-make] INFO - Profile: development-android [cargo-make] INFO - Execute Command: "cargo" "make" "--disable-check-for-updates" "--no-on-error" "--loglevel=info" "--profile=development-android" "--makefile" "E:\\VSCODE\\appflowy\\frontend\\Makefile.toml" "appflowy-core-dev-android" [cargo-make][1] INFO - [cargo-make][1] INFO - Project: dart-ffi [cargo-make][1] INFO - Build File: E:\VSCODE\appflowy\frontend\Makefile.toml [cargo-make][1] INFO - Task: appflowy-core-dev-android [cargo-make][1] INFO - Profile: development-android [cargo-make][1] INFO - Running Task: echo_env "-------- Env Parameters --------" CRATE_TYPE: cdylib BUILD_FLAG: debug TARGET_OS: android RUST_COMPILE_TARGET: FEATURES: dart,openssl_vendored PRODUCT_EXT: apk APP_ENVIRONMENT: local BUILD_ARCHS: BUILD_VERSION: [cargo-make][1] INFO - Running Task: install_flutter_protobuf [cargo-make][1] INFO - Skipping Task: env_check [cargo-make][1] INFO - Running Task: set-app-version APP_VERSION: 0.7.6 [cargo-make][1] INFO - Running Task: setup-crate-type [cargo-make][1] INFO - Running Task: set-app-version APP_VERSION: 0.7.6 [cargo-make][1] INFO - Running Task: sdk-build-android 系统找不到指定的路径。 '_FLAG" = "debug" ]; then' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 '煔€' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 'ndk' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 'cho' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 error: Failed to load Cargo.toml in current directory. error: `cargo metadata` exited with an error: error: could not find `Cargo.toml` in `E:\VSCODE\appflowy\frontend` or any parent directory 'fi' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 [cargo-make][1] INFO - Running Task: post-mobile-android 🚀 🚀 🚀 AppFlowy-Core for Android platform build success 💻 💻 💻 Copying E:\VSCODE\appflowy\frontend/rust-lib/jniLibs/ to E:\VSCODE\appflowy\frontend/appflowy_flutter/android/app/src/main/ [cargo-make][1] ERROR - Error while running duckscript: Source: Unknown Line: 9 - Path does not exist. [cargo-make][1] WARN - Build Failed. [cargo-make] INFO - Running Task: restore-crate-type [cargo-make] ERROR - Task error detected, exit code: 1 [cargo-make] WARN - Build Failed. ### How to Reproduce run task AF-Android:Clean + ReBuild All ### Expected Behavior build success ### Operating System windows 11 ### AppFlowy Version(s) 0.7.6 ### Screenshots ![1733827788833](https://github.com/user-attachments/assets/362e15c1-1155-4404-ae5c-ba39c98eb8ea) ### Additional Context i checked the environments and its all good,and windows all right too
mirror 2026-03-23 21:27:26 +00:00
  • closed this issue
  • added the
    mobile
    bug
    labels
Author
Owner

@LucasXu0 commented on GitHub (Dec 11, 2024):

Hi @Stiuk, could you share your NDK version? Also, have you installed cargo-ndk?

<!-- gh-comment-id:2533470211 --> @LucasXu0 commented on GitHub (Dec 11, 2024): Hi @Stiuk, could you share your NDK version? Also, have you installed cargo-ndk?
Author
Owner

@Stiuk commented on GitHub (Dec 11, 2024):

image
Do I need to update?

<!-- gh-comment-id:2533476765 --> @Stiuk commented on GitHub (Dec 11, 2024): ![image](https://github.com/user-attachments/assets/aad49243-8a85-41ec-9c5e-9b7c3d7c24d0) Do I need to update?
Author
Owner

@annieappflowy commented on GitHub (Jan 3, 2025):

@LucasXu0 , status?

<!-- gh-comment-id:2569306717 --> @annieappflowy commented on GitHub (Jan 3, 2025): @LucasXu0 , status?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#3081
No description provided.