Cannot build for Android on Windows 11 #4823
Unanswered
paulo-assoc
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using perry v0.5.1129. I have installed the Android NDK and SDK, and ran rustup target add aarch64-linux-android armv7-linux-androideabi
But I get this error when building for Android:
perry .\src\index.ts -o todo --target android
Collecting modules...
Found 1 module(s): 1 native, 0 JavaScript
Generating code...
Reused cached object: \?\C:\Users\paulo\Repos\other\perry-todo.perry-cache\objects\android\19420357e6a0f6ef.o
Linking (runtime-only)...
Error: perry/ui imported but libperry_ui_android.a not found. Build with: RUSTC_BOOTSTRAP=1 RUSTFLAGS="-Z tls-model=global-dynamic" cargo build --release -p perry-ui-android --target aarch64-linux-android
Perhaps I did something wrong, but I think the Perry docs can be clearer on setup and config, which all the exact steps and should assume the developer hasn't used rust/cargo before.
Beta Was this translation helpful? Give feedback.
All reactions