我的应用使用android-ndk。我想在Android Studio 3中使用useDeprecatedNdk。可能吗?
我将android.useDeprecatedNdk = true
添加到gradle.properties文件中。但是我遇到了错误
* What went wrong:
Execution failed for task ':compileFlav1ReleaseNdk'.
> 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:
/project-path/build/intermediates/ndk/flav1/release/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=1562444227185 in gradle.properties
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.