user45678
user45678

Reputation: 1514

How to use Deprecated NDK in Android Studio

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

Answers (1)

kapilgm
kapilgm

Reputation: 1620

In Android-Studio,gradle.properties can be accessed by the following drop-down list of views.Drop Down Box in Android Studio

After selecting the Project view,expand your project name and open your gradle.properties Tab . gradle.properties

In the editor window enter

android.useDeprecatedNdk=true

Now,you will be able to use the current NDK.

Upvotes: 6

Related Questions