1. java文件路徑:
/Users/xuye/StudioProjects/ChatUI/app/src/main/java/com/im/MessageClient.java
2. 包名是:
package com.im;
3. 進(jìn)入路徑:
cd /Users/xuye/StudioProjects/ChatUI/app/src/main/java/
4. 運行如下命令生成jni頭文件
javac com/im/MessageClient.java
javah com.im.MessageClient