(转)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

猜你喜欢

转载自jameskaron.iteye.com/blog/2297269