Android Studio insists on using LTS NDK version 27

66 views
Skip to first unread message

jonlgre...@gmail.com

unread,
Jul 29, 2025, 12:05:46 PMJul 29
to android-ndk
I am trying to update my native app as required to support 16KB pages on Android 15.

The docs on this state that using NDK r28 or higher is easiest because it intrinsically supports 16KB.


So I installed the latest stable version of r28, and for safety uninstalled the LTS version r27.
But when I then did a gradle sync I see this output in the build window:

Checking the license for package NDK (Side by side) 27.0.12077973 in C:\Android\sdk\licenses

License for package NDK (Side by side) 27.0.12077973 accepted.

Preparing "Install NDK (Side by side) 27.0.12077973 v.27.0.12077973".

"Install NDK (Side by side) 27.0.12077973 v.27.0.12077973" ready.

Installing NDK (Side by side) 27.0.12077973 in C:\Android\sdk\ndk\27.0.12077973

"Install NDK (Side by side) 27.0.12077973 v.27.0.12077973" complete.

"Install NDK (Side by side) 27.0.12077973 v.27.0.12077973" finished.

Checking in SDK Tools the r27 version has been reinstalled. So it looks to me that my build will not be using the latest installed version of the NDK (r28), but this LTS version (r27), which needs extra action to support 16KB.

Note I have updated AGP to latest 8.11.1 and gradle to 8.13.

Also using latest version of Androis Studio Narwhal 2025.1.1.

I am not explicitly specifying a particular version of the NDK to use anywhere in my project - should get the default .


Anyone know what is going on? Why doesn't the latest version of Androis Studio just use NDK version 28?


Dan Albert

unread,
Jul 31, 2025, 2:40:02 PMJul 31
to andro...@googlegroups.com
I am not explicitly specifying a particular version of the NDK to use anywhere in my project - should get the default .

Yes, and the default for the version of AGP used by your project is apparently r27 :) Follow https://developer.android.com/studio/projects/install-ndk#apply-specific-version to specify a different version.

Why doesn't the latest version of Androis Studio just use NDK version 28?

I think the answer is that r28 didn't exist when the latest version of AGP was choosing what versions of tools to use by default. They only update those annually, and new NDKs ship (ideally) every quarter, so there will be 3 quarters of the year where the latest AGP is not using the latest NDK.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/android-ndk/26bad836-feae-42c3-a817-f446643b4316n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages