willir / cargo-ndk-android-gradle

Cargo NDK for Android projects
Apache License 2.0
55 stars 7 forks source link

Show the errors when cargo build fails? #3

Open 8176135 opened 4 years ago

8176135 commented 4 years ago

Currently if the cargo ndk build fails, android studio only shows that cargo exited with a non 0 return code. To see the actual error you have to compile it manually in command line (AFAIK anyway).

Would be nice to be able to see the error directly in android studio, especially for cases when manually compiling it works, but fails when building from android studio. (Usually caused by some environment variable differences).

willir commented 3 years ago

Sorry for ignoring this issue that long.

Do you have any suggestions how it can be implemented? I guess it would be nice to have some cargo build output/log/progress in the console. Maybe even in the android studio too.

willir commented 3 years ago

Also, you can see the full error output by selecting the "build" tab at the bottom of Android Studio, and then selecting the top most error group (Build: failed at), it should show you the full log. I guess it is not as convenient as native error messages, but at least something.