Return non-zero if ndk build fails.
Merge pull request #4149 from dumganhar/android-build-fix

[ci skip]Return non-zero if ndk build fails.