error[E0412]: cannot find type `Result` in this scope, when cross compiling

When I try to cross compile to android x86_64, I'm getting thousands of errors like this, with std lib stuff missing:

error[E0412]: cannot find type `Result` in this scope
   --> /usr/local/cargo/registry/src/
207 |         fn poll_close(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
    |                                                                          ^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /usr/local/cargo/registry/src/
208 |             Poll::Ready(Ok(()))
    |                         ^^ not found in this scope


rustup target add x86_64-linux-android 

Well, then what's the question?

1 Like

just wanted to post a solution cause didn't find anything about this

You can mark your own post as the solution (or put the solution in it's own reply and mark that as the solution).

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.