External Tools Configurations的参数如下图:
对应的cmd命令是
C:\Users\Administrator>d:
D:\>cd \workspace\testjni1\src
D:\workspace\testjni1\src>javah com.example.testjni1.MainActivity
运行后会在src目录下生成一个.h文件如下图:
javap的外部工具配置方法:
Location:${system_path:javap}
Working Directory:${project_loc}
Arguments:-classpath "${project_classpath};${env_var:ANDROID_SDK_HOME}/platforms/android-19/android.jar" -p -s ${java_type_name}