Cocos2d-x 3.2 on Windows 7 to Android error! (ndk r9)

Hi All,
I am trying compile cocos app to android on my Windows 7 Box, I have this error:

c:\cocos2d-x-3.2\cfhproj\proj.android>build_native.py
The Selected NDK toolchain version was 4.8 !
Android NDK: WARNING: APP_PLATFORM android-18 is larger than android:minSdkVersi
on 9 in ./AndroidManifest.xml
Android NDK: Invalid APP_STL value: c++_static
Android NDK: Please use one of the following instead: system stlport_static stl
port_shared gnustl_static gnustl_shared gabi++_static gabi++_shared none
make: Entering directory c:/cocos2d-x-3.2/cfhproj/proj.android' C:/android-ndk-r9/build/core/add-application.mk:254: *** Android NDK: Aborting . Stop. make: Leaving directoryc:/cocos2d-x-3.2/cfhproj/proj.android’
Traceback (most recent call last):
File “C:\cocos2d-x-3.2\cfhproj\proj.android\build_native.py”, line 159, in
build(opts.ndk_build_param,opts.android_platform,opts.build_mode)
File “C:\cocos2d-x-3.2\cfhproj\proj.android\build_native.py”, line 146, in bui
ld
do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,and
roid_platform,build_mode)
File “C:\cocos2d-x-3.2\cfhproj\proj.android\build_native.py”, line 82, in do_b
uild
raise Exception(“Build dynamic library for project [ " + app_android_root +
" ] fails!”)
Exception: Build dynamic library for project [ C:\cocos2d-x-3.2\cfhproj\proj.and
roid ] fails!

c:\cocos2d-x-3.2\cfhproj\proj.android>

This is my env:

c:\cocos2d-x-3.2>setup.py

Setting up cocos2d-x…
->Check environment variable COCOS_CONSOLE_ROOT
->Search for environment variable COCOS_CONSOLE_ROOT…
->COCOS_CONSOLE_ROOT is found : C:\cocos2d-x-3.2\tools\cocos2d-console\bin

->Configuration for Android platform only, you can also skip and manually edit y
our environment variables

->Check environment variable NDK_ROOT
->Search for environment variable NDK_ROOT…
->NDK_ROOT is found : C:\android-ndk-r9

->Check environment variable ANDROID_SDK_ROOT
->Search for environment variable ANDROID_SDK_ROOT…
->ANDROID_SDK_ROOT is found : C:\adt-bundle-windows-x86_64-20140702\sdk

->Check environment variable ANT_ROOT
->Search for environment variable ANT_ROOT…
->ANT_ROOT is found : C:\apache-ant-1.9.4\bin

Anyone can helpme?
Thanks

I found the problem: need to use “android-ndk-r9d”

http://dl.google.com/android/ndk/android-ndk-r9d-windows-x86.zip

So I am correct in saying that the r10 NDK does not work? If so, where can one find r9d for a 64bit Mac?

Right. Sorry. No, it doesn’t work and nor does most (I think all) of the reviions of r9 before d.

http://androids.zone/android-ndk/#.U-V_4fldW5x

^where I found

here’s direct link to file

http://dl.google.com/android/ndk/android-ndk-r9d-darwin-x86_64.tar.bz2

I compiled my cocos 3.2 game with android ndk r10 without any problems.

I wonder why that is. Yet so many inquiries are made to this problem.

http://cocos2d-x.org/news/307

i tried with different versions of ndk, only ndk r9d works with 3.2 version

That’s also my experience. The current version is 10b and that doesn’t work. Version 10 worked a little bit, but then they upgraded to 10b and that doesn’t work. I tried version 9b, but that doesn’t work either. So far the only version that works is 9d. I’m on a 64-bit MacOSX 10.9.