Which NDK to use on 3.17.1

Which NDK to use on 3.17.1
0

#1

Hello everyone I just made the upgrade to cocos2d-x v3.17.1, which NDK version is everybody using on 3.17.1 ?? version r16b or the latest (r19) ??


#2

I’m using latest r19.
But I didn’t publish it yet to Play Market (currently on market game built with r17c)


#3

ok sounds good, if its building fine everything should work then when its on the market right ?


#4

Should but who knows, on market plenty of different devices


#5

I’m using r16 because as i know, is the last version tested by cocos team. Or i’m wrong?
:thinking:


#6

You should use the same what was used to build cocos: ndk16.
“All libraries should be generated with the same NDK version.”

https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md#using-mismatched-prebuilt-libraries


#7

is it possible to see which NDK was used for 3.17.1 ?

I think it might be r18b since the new template has minSDK at 16 , and api 14&15 were removed in r18b


#8

We still used NDK16.


#9

I see what you mean in the link but I think it means not to use 2 different NDKs to compile your project ? so if cocos team used NDK 16 to compile , but you use NDK 19 to compile your project it will be ok ? (correct me if im wrong)


#10

The saftest option: compile everything (including cocos2dx prebuilds) in exactly the same environment: the same ndk, compiler, compiler options etc

Using different ndks may work or not …