Как использовать useDeprecatedNdk с Android Studio 3 - PullRequest
0 голосов
/ 06 июля 2019

Мое приложение использует android-ndk. Я хочу использовать useDeprecatedNdk с Android Studio 3. Возможно ли это?

Я добавляю 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.
...