Reputation: 1514
I am trying to include .so
files in my Android Studio project inside .jniLibs
folder but getting below error, how can I overcome it?
Error:Execution failed for task ':app: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.
I couldn't find gradle.properties
anywhere? Where can I find or are there any work around?
Thanks
Upvotes: 5
Views: 18500
Reputation: 1620
In Android-Studio,gradle.properties can be accessed by the following drop-down list of views.
After selecting the Project view,expand your project name and open your gradle.properties Tab .
In the editor window enter
android.useDeprecatedNdk=true
Now,you will be able to use the current NDK.
Upvotes: 6