命令:(on macbook for android)java
javah -d src/main/jni -jni -classpath /Users/Carlyle_Pro/Documents/android_adt/sdk/platforms/android-25/android.jar:build/intermediates/classes/debug apps.carlyle.com.testandroid.vortex.VortextView
android
说明:app
1,-d: 指定输出所在的文件夹ui
2,-classpath: 申明class 所在文件的位置。因为这里VortextView 中用到了Android 的相关类。所以class path 还指定了android.jar spa
注意这里的class path 分割符号。mac 用[: ] window 貌似是用 [;] 号;debug
3,对应的类:注意写类的全路径。而且不要写.class 后缀。另外要注意到 build/intermediates/classes/debug 是class 文件所在目录。orm
这两个[build/intermediates/classes/debug apps.carlyle.com.testandroid.vortex.VortextView] 拼接起来就能定位到具体class 文件的位置(包名parse 成路径的。)不然会报错。blog
相关错误 参考这篇博客:macbook
http://juhbgf.blog.163.com/blog/static/59831768201332904025665/博客