问题:
Error:Execution failed for task ':Demo:compileDebugNdk'.
> Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set "$USE_DEPRECATED_NDK=true" in gradle.properties to continue using the current NDK integration.
解决方法:
我们按着英文的意思,可以看出,它是让我们在gradle.properties中添加如下代码
android.useDeprecatedNdk=true
如下图: