如果你的项目需要对NDK进行编译,并且你的gradle在3.0+
Execution failed for task ':app: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:
E:\workspase\SelfServiceCabinet\app\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=1540986007490 in gradle.properties
出现这样的错误。错误说的很明白 。 即将不能使用 ,建议用CMake或者ndk-build插件 。。
并且给了两个连接。 搭梯子 访问 https://d.android.com/r/studio-ui/add-native-code.html#ndkCompile
是google对如何适配新的编译环境
1.// Remove this line
android.useDeprecatedNdk = true
2.
未完,后补充