1. File->Settings->Tools->External Tools
2. javah
Program : $JDKPath$\bin\javah.exe
Parameters : -classpath . -jni -o $ModuleFileDir$/src/main/jni/$Prompt$ $FileClass$
Working directory : $ModuleFileDir$\src\main\java
2. ndk-build
Program : D:\sw\develop\android\sdk\ndk-bundle\build\ndk-build.cmd
Parameters :
Working directory : $ModuleFileDir$\src\main
Program : D:\sw\develop\android\sdk\ndk-bundle\build\ndk-build.cmd
Parameters : clean
Working directory : $ModuleFileDir$\src\main