Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

make build-android-rn-example failed #74

Open
victoryeo opened this issue Jun 14, 2020 · 1 comment
Open

make build-android-rn-example failed #74

victoryeo opened this issue Jun 14, 2020 · 1 comment

Comments

@victoryeo
Copy link

victoryeo commented Jun 14, 2020

I tried this :
"make build-android-rn-example", it failed.

error[E0463]: can't find crate for `core`

note: the aarch64-linux-android target may not be installed
error: Could not compile byte-tools.
error: Could not compile scopeguard.
error[E0463]: can't find crate for std
note: the armv7-linux-androideabi target may not be installed
Could not compile rand_core.

rustc --version --verbose:
rustc 1.38.0 (625451e37 2019-09-23)
binary: rustc
commit-hash: 625451e376bb2e5283fc4741caa0a3e8a2ca4d54
commit-date: 2019-09-23
host: x86_64-unknown-linux-gnu
release: 1.38.0
LLVM version: 9.0

In the android-rn-example-build.sh, i check the bash script. It is written for MacOS only. The script cannot work on Linux.

export ANDROID_NDK_TOOLCHAINS=$HOME/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin

@XuNeal
Copy link
Contributor

XuNeal commented Nov 24, 2020

You should install the ndk https://developer.android.com/ndk, and set the ANDROID_NDK_TOOLCHAINS to the right path.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants