Error:Execution failed for task ':react-native-update:compileDebugNdk'.
Error: Flag android.useDeprecatedNdk is no longer supported and will be removed in the next version of Android Studio. Please switch to a supported build system.
Consider using CMake or ndk-build integration. For more information, go to:
https://d.android.com/r/studio-ui/add-native-code.html#ndkCompile
To get started, you can use the sample ndk-build script the Android
plugin generated for you at:
D:\react-native\yiguan_rn_demo\node_modules\react-native-update\android\build\intermediates\ndk\debug\Android.mk
Alternatively, you can use the experimental plugin:
https://developer.android.com/r/tools/experimental-plugin.html
To continue using the deprecated NDK compile for another 60 days, set
android.deprecatedNdkCompileLease=1521518279826 in gradle.properties
就是在Android工程目录中gradle.properties文件的android.useDeprecatedNdk=true不在被支持,想要继续使用已弃用的NDK编译60天,在gradle.properties文件,把android.useDeprecatedNdk去掉,换成android.deprecatedNdkCompileLease=1521518279826 后面这个数字按错误日志里的填。