错误如下:
Information:Gradle tasks [:app:assembleRelease]
Error:Execution failed for task ':app:compileReleaseNdk'.
> 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.
解决方法1
1、在project目录下创建gradle.properties文件
2、在文件中加入: $USE_DEPRECATED_NDK=true Android.useDeprecatedNdk=true
3、Sync project with gradle
解决方法2
android { sourceSets.main.jni.srcDirs = [] }
文章评论
You have made some decent points there. I looked on the web to
learn more about the issue and found most people will go
along with your views on this site.