CMD到setup.py目录 Python setup.py -h 查看帮助: Options: -h,--help showthis help message and exit -n NDK_ROOT,--ndkroot=NDK_ROOT directoryof ndk root -a ANDROID_SDK_ROOT,--androidsdkroot=ANDROID_SDK_ROOT directoryof Android sdk root -t ANT_ROOT,--antroot=ANT_ROOT directorythat contains ant/ant.bat python setup.py -n "D:\Program\android-ndk-r9d" 此处是你想
修改后的路径!