问题:JNI编译 Caused by: java.lang.UnsatisfiedLinkError: Couldn’t load libhello-jni: findLibrary returned null libs
解决方案:在jni文件夹插入Application.mk文件,设置APP_ABI为all
//file:Application.mk
APP_ABI := all
问题:javah 時出現错误: 无法访问android.app.Activity,找不到android.app.Activity的类文件
解决方案:加入classpath,引入Android.jar位置
javah -classpath D:\android-sdk\platforms\android-16\;. -jni com.xxxx.xxxx