Description
Description
Android React Native apps have not been able to successfully build since we updated NDK to r17. The build error shows this:
> A problem occurred starting process 'command '/Users/myuser/Library/Android/sdk/ndk-bundle/toolchains/mipsel-linux-android-4.9/prebuilt/darwin-x86_64/bin/mipsel-linux-android-strip''
To work around this, our team had to manually replace the bare NDK r17 ~/Library/Android/sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/
and ~/Library/Android/sdk/ndk-bundle/toolchains/mipsel-linux-android-4.9/
directories with those of the old NDK r16. Almost all files that were once in these 2 directories bacvk in NDK r16 are completely gone in the new NDK r17.
Steps to reproduce:
- Create a new React Native app called TestApp using the following commands on macOS:
brew install node
brew install watchman
npm install -g react-native-cli
react-native init TestApp
(Use this link if issues arise with Android dev environment: https://facebook.github.io/react-native/docs/getting-started.html)
2. Open an Android emulator and build the Android app using react-native run-android
3. Observe the following build error:
:app:transformNative_libsWithStripDebugSymbolForDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformNative_libsWithStripDebugSymbolForDebug'.
> A problem occurred starting process 'command '/Users/myuser/Library/Android/sdk/ndk-bundle/toolchains/mipsel-linux-android-4.9/prebuilt/darwin-x86_64/bin/mipsel-linux-android-strip''
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 15.318 secs