Cocos2dx 3.16 with ndk r16b build failure

I am using Cocos2dx 3.16 on windows machine.
Using NDK r10c Build succeeded and apk generated but Using NDK r16b (latest) Build failed in Android studio while running the project.

This is the error generated.

D:/StudioSdk/sdk/ndk-bundle/build//…/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/…/lib/gcc/arm-linux-androideabi/4.9.x/…/…/…/…/arm-linux-androideabi/bin/ld.exe: error: D:/StudioSdk/sdk/ndk-bundle/build//…/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/…/libexec/gcc/arm-linux-androideabi/4.9.x/liblto_plugin-0.dll: could not load plugin library: The parameter is incorrect.

Caused by: org.gradle.internal.UncheckedException: Build command failed.

Any help?

Im suposing it should not work together, only 3.17 will work with it

Yup i downloaded ndk r14b its working fine.