在慕课网看了一个as使用ndk的视频.
于是跟着先创建了一个工程,然后又在工程里创建了一个module,里面只有一个NdkString类,类里面只有一行public static native String getStringFromNdk();
然后javah命令编译出了.h文件,重构工程之后出现了这样一个异常:Error:Execution failed for task ':mylibrary: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 "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration.
各种查资料瞎j8乱改无果后,想到了来csdn求助。
求大神指点12