Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Whats NDK (side-by-side) in android sdk?

There's a ndk (side-by-side) at the sdk manager. Is it needed to install or just need to install the ndk?

like image 866
Daniel Mana Avatar asked May 28 '19 08:05

Daniel Mana


People also ask

What is Android NDK side by side?

This should allow you to have more reproducible builds and mitigate incompatibilities between NDK versions and the Android gradle plugin." I think side by side means you may use multiple NDK versions simultaneously. It is a new version to replace the ndk bundle version.

What is NDK and sdk in Android?

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.

What is mean by NDK in Android?

The Native Development Kit (NDK) is a set of tools that allows you to use C and C++ code with Android, and provides platform libraries you can use to manage native activities and access physical device components, such as sensors and touch input.

Do I need Android SDK and NDK tools?

If you are using the IL2CPP scripting back end for Android, you need the Android Native Development Kit (NDK). It contains the toolchains (such as compiler and linker) needed to build the necessary libraries, and finally produce the output package (APK).


2 Answers

This is how it looks like in my Android Studio 3.5 beta2:

enter image description here

You can see that I don't hide obsolete packages and request package details. Now we see that the old NDK package is replaced by the new NDK (Side by side), which allows to keep both NDK r19 and r20.

The reason why they are making the change is that switching to the latest version of NDK is not always painless, and many developers prefer to stay with an older version, at least for some projects.

The bottom line is that it is OK to use the NDK that you have installed, but it will be replaced with the new package some time later when you upgrade the Android Studio.

like image 117
Alex Cohn Avatar answered Oct 19 '22 03:10

Alex Cohn


NDK (Side by side) is irrelevant for Android Gradle Plugin earlier than 3.5. However, the components available for download by SDK manager aren't customizable based on Android Gradle Plugin version so the side by side NDKs will appear.

Starting in 3.5, you can specify a particular version of NDK in your build.gradle by setting, for example:

android.ndkVersion '19.2.5345600'

The non side by side NDK has been marked as obsolete. Which means it won't appear in the SDK manager list unless you uncheck Hide obsolete packages --or-- you already have that NDK installed locally.

like image 29
Jomo Fisher Avatar answered Oct 19 '22 02:10

Jomo Fisher