如果你的項目需要對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
出現(xiàn)這樣的錯誤识埋。錯誤說的很明白 危纫。 即將不能使用 ,建議用CMake或者ndk-build插件 席镀。蝠猬。?
并且給了兩個連接。 搭梯子 訪問??https://d.android.com/r/studio-ui/add-native-code.html#ndkCompile
是google對如何適配新的編譯環(huán)境
1.// Remove this line
android.useDeprecatedNdk = true
2.
未完忱辅,后補充