或者:

Error: Cannot determine signature for Bitmap


原因: javah 无法识别Android的bitmap

The Bitmap class belongs to the package "android.graphics.Bitmap", the javah tool does not recognize Android classes, so you must add the classpath option to javah command.


解决方法:

windows:

javah -classpath C:\PROGRA~2\Android\android-sdk\platforms\android-8\android.jar;. com.test.JniTest

linux/mac:

javah -classpath /Users/Android/android-sdk/platforms/android-xy/android.jar:. com.test.JniTest
参考:

http://stackoverflow.com/questions/22106539/android-ndk-javah-cannot-find-signature-for-bitmap?lq=1

http://stackoverflow.com/questions/7635624/android-javah-doesnt-find-my-class/7635758#7635758

更多相关文章

  1. Android 3.0之后开机无法接收系统广播权限原因
  2. ListView setOnItemClickListener无效原因详细分析
  3. 常见Android Native崩溃及错误原因
  4. CheckBox 设置style 没有效果的原因
  5. listView的item中有checkbox,导致setOnItemClick失效的原因及解决
  6. Android 屏幕切换和onConfigurationChanged不调用的原因

随机推荐

  1. android的文件操作
  2. Android中Activity启动模式详解
  3. android用sharepreference保存输入框中的
  4. eclipse中安装android ADT插件及无法下载
  5. Android(安卓)经典小技巧总结
  6. Android获取当前网络状态和获取当前设备
  7. 【Android】Android6.0发送短信Demo
  8. android判断当前网络状态,eth wifi pppoe
  9. GMS Android(安卓)Q移除launcher3 google
  10. Android——4.2.2 源码目录结构分析