mozilla / rust-android-gradle

Apache License 2.0
1.08k stars 70 forks source link

Cannot find rustc command #102

Closed hmmmk closed 2 years ago

hmmmk commented 2 years ago

I'm trying to build Shadowsocks application which uses rust-android-gradle and I'm always facing the same error with finding rustc. Can you tell me what am I doing wrong and how can I fix it?

Here is error message:

1: Task failed with an exception. What went wrong: Execution failed for task ':core:cargoBuildArm'. A problem occurred starting process 'command 'rustc''

P.S.: I'm using MacOS and when I'm trying to access rustc from terminal everything works fine

ncalexan commented 2 years ago

By default, we're going to exec a bare rustc. Configure your $PATH as appropriate or override directly: https://github.com/ncalexan/rust-android-gradle/blob/master/README.md#specifying-paths-to-sub-commands-python-cargo-and-rustc.