随笔分类 -  Android NDK

摘要:1.官方文档 https://developer.android.google.cn/ndk/guides/application_mk 2.简介 在NDK中编写的是本地程序,源码在 jni目录下,这个本地项目的配置文件就是Application.mk APP_PROJECT_PATH 这个变量是强 阅读全文
posted @ 2015-08-17 22:24 f9q 阅读(450) 评论(0) 推荐(0) 编辑
摘要:ndk 调试本地应用时报错如下 :console信息:[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: [2015-08-17 19:52:05 - NdkSample] Android[2015-08-17 19:52:05 - ... 阅读全文
posted @ 2015-08-17 19:58 f9q 阅读(362) 评论(0) 推荐(0) 编辑
摘要:from :http://ian-ni-lewis.blogspot.com/2011/05/ndk-debugging-without-root-access.htmlNDK debugging without root accessRecentlyI made a comment to the ... 阅读全文
posted @ 2015-08-17 16:22 f9q 阅读(873) 评论(0) 推荐(0) 编辑
摘要:Using the NDK Plugin1. First set the path to SDK and NDK: Eclipse -> Window -> Preferences -> Android -> set path to SDK Eclipse -> Window -> Pref... 阅读全文
posted @ 2015-08-17 15:29 f9q 阅读(229) 评论(0) 推荐(0) 编辑
摘要:JNI Tips 1.In this document JavaVM and JNIEnv Threads jclass, jmethodID, and jfieldID Local and Global References UTF-8 and UTF-16 Strings Primitive A 阅读全文
posted @ 2015-08-17 15:02 f9q 阅读(595) 评论(0) 推荐(0) 编辑
摘要:3种解决办法: 1.重新初始化eclipse对该project的native support 1. 在eclipse中关闭指定Project 2. 用其他编辑工具打开该project的.project文件,删除以下内容: 后面几行在<nature> 下 3. 删除.cproject文件 4. 在ec 阅读全文
posted @ 2015-08-15 15:53 f9q 阅读(365) 评论(0) 推荐(0) 编辑
摘要:调用native方法时报错如下 : “java.lang.UnsatisfiedLinkError: Native method not found.... ”;原因分析: 链接器只看到了在so中该方法声明,没有看到该方法定义.只要让它们匹配就可.解决方法:1、检查包名,类名是否出错.2、c++中... 阅读全文
posted @ 2015-08-14 23:14 f9q 阅读(462) 评论(0) 推荐(0) 编辑
摘要:环境linux + eclipse + adt + ndk 1,在ide中配置ndk 下载ndk,在eclipse中配置 2,使用ndk编程 2.1 给项目添加ndk 支持 右键 项目名 -->Android Tools -->Add Native Support... 生成jni目录,包含xxx. 阅读全文
posted @ 2015-08-14 19:35 f9q 阅读(300) 评论(0) 推荐(0) 编辑
摘要:AndroidNDK Android NDK 是在SDK前面又加上了“原生”二字,即Native Development Kit,因此又被Google称为“NDK”。 Android程序运行在Dalvik虚拟机中,NDK允许用户使用类似C / C++之类的原生代码语言执行部分程序。 NDK包括了: 阅读全文
posted @ 2015-08-11 23:17 f9q 阅读(294) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示