Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NDK integration in Android studio

Tags:

Today I updated my android studio to 1.3 and I enter the NDK (android-ndk-r10e NDK version) path in local.properties (ndk.dir=C:\AndroidNDK\android-ndk-r10e\android-ndk-r10e) but I got this error.

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.

please help me to solve this issue

like image 631
user1517638 Avatar asked Aug 10 '15 15:08

user1517638


People also ask

What is NDK used for in Android Studio?

Android Studio provides wizards and templates that verify your system requirements, such as the Java Development Kit (JDK) and available RAM, and configure default settings, such as an optimized default Android Virtual Device (AVD) emulation and updated system images.

Does Android Studio have NDK?

Android Studio installs all versions of the NDK in the android-sdk /ndk/ directory. To install CMake and the default NDK in Android Studio, do the following: With a project open, click Tools > SDK Manager.

What is difference between Android NDK and SDK?

Android provides Native Development Kit (NDK) to support native development in C/C++, besides the Android Software Development Kit (Android SDK) which supports Java. [TODO] more. NDK is a complex and advanced topics.

Where do I put Android NDK?

Android Studio installs all versions of the NDK in the android-sdk /ndk/ directory. Each version is located in a subdirectory with the version number as its name. Note: Remove this property before distributing your source code; it should be left outside of your version control system.


1 Answers

Set android.useDeprecatedNdk=true in gradle.properties to continue using the current NDK integration.

You just have to follow the instruction which is given to you in the error.

like image 104
arodriguezdonaire Avatar answered Oct 12 '22 00:10

arodriguezdonaire