今天时间不是很紧,赶紧试试JNI,结果一上手就丢出来一个这么个BUG,在网上找了半天都没有找到什么结果,先看看问题吧:
Error:(14, 0) 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.
<a href="openFile">Open File</a>
网上很多网友都说,只需要在gradle.properties这个文件里面添加一个配置就OK了,然后并没有什么卵用,我盯着这个Error看了一会,果断去这里看看,看啥?先进去再说吧。里面有一张表——Plugin与Gradle匹配表:
Plugin Version | Gradle Version |
---|---|
0.1.0 | 2.5 |
0.2.0 | 2.5 |
0.3.0-alpha3 | 2.6 |
0.4.0 | 2.8 |
0.6.0-alpha1 | 2.8 |
0.7.0-alpha1 | 2.10 |
0.7.0 | 2.10 |
0.7.3 | 2.14.1 |
按找这张表上的匹配方式就OK了。