JNI开发 NDK integration is deprecated in the current plugin

今天时间不是很紧,赶紧试试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 VersionGradle Version
0.1.02.5
0.2.02.5
0.3.0-alpha32.6
0.4.02.8
0.6.0-alpha12.8
0.7.0-alpha12.10
0.7.02.10
0.7.32.14.1

按找这张表上的匹配方式就OK了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值