Fix CI "Build Tests: Android Instrumentation Tests" errors (#31352)
Fix CI "Build Tests: Android Instrumentation Tests" errors (#31352)

Summary:
To fix [the CI error](https://app.circleci.com/pipelines/github/facebook/react-native/8708/workflows/d584348e-941f-4653-96c2-46375894dfaa/jobs/196410)
  There are two errors:
  `error: undefined reference to '__android_log_write'` which solved by adding `-llog` linker flag.

  `ld: error: cannot find -lc++` which workaround by static linking.
  For the root cause, I am thinking that is after [NDK r19](https://developer.android.com/ndk/guides/other_build_systems),
  the `-target` should specificy api level.
  However, buck does not add this accordingly, e.g. `-target armv7-none-linux-androideabi`
  Given wrong target will make NDK to have `cannot find -lc++` error.
  The workaround is to use static linking.
  Since it was an oss_cxx_library, the change should not have impact to Facebook internal testing.

## Changelog

[Internal] [Fixed] - Fix CI "Build Tests: Android Instrumentation Tests" errors

Pull Request resolved: https://github.com/facebook/react-native/pull/31352

Test Plan: Make CI green

Reviewed By: JoshuaGross

Differential Revision: D27757838

Pulled By: fkgozali

fbshipit-source-id: 8f9c80a89c6240938218abacb8a82e3e2e71adbc

janicduplessis/react-native,facebook/react-native,pandiaraj44/react-native,myntra/react-native,javache/react-native,javache/react-native,pandiaraj44/react-native,janicduplessis/react-native,myntra/react-native,facebook/react-native,javache/react-native,myntra/react-native,javache/react-native,myntra/react-native,janicduplessis/react-native,arthuralee/react-native,javache/react-native,facebook/react-native,myntra/react-native,myntra/react-native,javache/react-native,facebook/react-native,pandiaraj44/react-native,myntra/react-native,arthuralee/react-native,facebook/react-native,arthuralee/react-native,pandiaraj44/react-native,javache/react-native,javache/react-native,pandiaraj44/react-native,janicduplessis/react-native,pandiaraj44/react-native,myntra/react-native,facebook/react-native,janicduplessis/react-native,javache/react-native,pandiaraj44/react-native,facebook/react-native,janicduplessis/react-native,facebook/react-native,janicduplessis/react-native,arthuralee/react-native,myntra/react-native,arthuralee/react-native,janicduplessis/react-native,facebook/react-native,pandiaraj44/react-native