(转)android studio: ndk integration is deprecated in the current plugin

ndk integration is deprecated in the current plugin ERROR:

html]  view plain  copy
 
 print ?
  1. Error: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.  

 

 

Here is how to solve this issue :

  1. add gradle.properties file to root folder of your project
  2. add 'android.useDeprecatedNdk=true' to gradle.properties file

Here is my gradle.properties :

 

 

[html]  view plain  copy
 
 print ?
  1. # Project-wide Gradle settings.  
  2.   
  3. # IDE (e.g. Android Studio) users:  
  4. # Gradle settings configured through the IDE *will override*  
  5. # any settings specified in this file.  
  6.   
  7. # For more details on how to configure your build environment visit  
  8. # http://www.gradle.org/docs/current/userguide/build_environment.html  
  9.   
  10. # Specifies the JVM arguments used for the daemon process.  
  11. # The setting is particularly useful for tweaking memory settings.  
  12. # Default value: -Xmx10248m -XX:MaxPermSize=256m  
  13. org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8  
  14.   
  15. # When configured, Gradle will run in incubating parallel mode.  
  16. # This option should only be used with decoupled projects. More details, visit  
  17. # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects  
  18. org.gradle.parallel=true  
  19.   
  20. android.useDeprecatedNdk=true  

 

And add it to root of your project :

 

And rebuild your project.

 

转自:http://blog.csdn.net/gao_chun/article/details/48289749

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值