Android NDK: From Elementary to Expert Expisode 21

来源:互联网 发布:淘宝发展前景怎么样 编辑:程序博客网 时间:2024/05/30 23:03

Last time, I wrote an AVI player app. When I began to generate the header file for the native function, I got an error:

Error: Cannot determine signature for Bitmap

Here is the right command:
On Mac and Linux:

javah -cp <Your android sdk path>/sdk/platforms/verision(such as:android-25)/android.jar:. <class name of your file>

On Windows:

javah -cp <Your android sdk path>/sdk/platforms/verision(such as:android-25)/android.jar;. <class name of your file>

After all, I generated the header file successfully.

阅读全文
0 0
原创粉丝点击