随笔 - 65  文章 - 0  评论 - 21  阅读 - 32万
10 2012 档案
Android SDK Manager无法更新
摘要:方法A:菜单栏Tools -> 下拉菜单Options...勾选复选框 force https://...http://...方法A,如果行不通,方法B:打开文件夹C:\Windows\System32\drivers\etc,找到文件hosts通常情况下,不是管理员是没有权限修改该文件的。所以,先修改该文件的权限。右键,属性 -> 安全 -> 编辑,为你当前登录用户添加权限。在该文件末尾添加:203.208.46.146 dl.google.com203.208.46.146 dl-ssl.google.com重新启动Android SDK Manager 阅读全文
posted @ 2012-10-16 16:03 Anthony Li 阅读(503) 评论(0) 推荐(0) 编辑
【学习Android NDK开发】native code通过JNI调用Java方法
摘要:1、建立Android应用application name: CallJavaMethodpackage name: com.example.cjmmain Activity: MainActivitymain Activity layout: activity_main2、Java实现打开layout/activity_main.xml布局文件,添加按钮控件,ID为“display_button_activity_main”<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android&quo 阅读全文
posted @ 2012-10-12 18:06 Anthony Li 阅读(7850) 评论(0) 推荐(0) 编辑
【学习Android NDK开发】Type Signatures(类型签名)
摘要:类型签名(Type Signatures) (<Parameter 1 Type Code>[<Parameter 1 Class>];...)<Return Type Code>The JNI uses the Java VM’s representation of type signatures. Following Table shows these type signatures.Type SignatureJava TypeZbooleabBbyteCcharSshortIintJlongFfloatDdoubleL full-qualified- 阅读全文
posted @ 2012-10-11 16:50 Anthony Li 阅读(707) 评论(0) 推荐(0) 编辑
【学习Android NDK开发】Primitive Types Map(基本类型映射)
摘要:Java type JNI type C type Stdint C type booleanjbooleanunsigned charuint8_tbytejbytesigned charint8_tcharjcharunsigned shortuint16_tdoublejdoubledoubledoublefloatjfloatfloatfloatintjintintint32_tlongjlonglong longint64_tshortjshortshortint16_t 阅读全文
posted @ 2012-10-07 17:23 Anthony Li 阅读(424) 评论(0) 推荐(0) 编辑
【学习Android NDK开发】搭建Android NDK开发环境(Ubuntu 12.04 LTS 32-bit)
摘要:1、安装make build工具执行以下命令:sudo apt-get install build-essential2、下载NDK官网下载页:http://developer.android.com/tools/sdk/ndk/index.html选择Linux 32/64-bit (x86)版本,下载下载成功后,解压到/usr/lib/目录下3、配置Eclipse插件a) 搭建SDK开发环境,参考:【学习Android NDK开发】搭建Android SDK开发环境(Ubuntu 12.04 LTS 32-bit)打开Eclipse,设置NDK路径,Window -> Prefere 阅读全文
posted @ 2012-10-07 14:27 Anthony Li 阅读(6166) 评论(0) 推荐(0) 编辑
ERROR: Could not extract package's data directory. Are you sure that your installed application is debuggable?
摘要:ndk-gdb,调试native code,出现以下错误:ndk-gdb --verbose,查看信息: --verbose: Print verbose information about the native debugging session setup. Only needed to debug problems when you can't connect and that the error messages printed by ndk-gdb are not enough.调试手机:HTC Desire Android 2.2Are you sure tha... 阅读全文
posted @ 2012-10-07 13:36 Anthony Li 阅读(3245) 评论(0) 推荐(0) 编辑
【学习Android NDK开发】Android.mk文件
摘要:以下内容来自Android NDK文档<ANDROID_NDK_HOME>/docs/ANDROID-MK.htmlOverview:An Android.mk file is written to describe your sources to thebuild system. More specifically:- The file is really a tiny GNU Makefile fragment that will be parsed one or more times by the build system. As such, you should try t 阅读全文
posted @ 2012-10-01 11:55 Anthony Li 阅读(4202) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

博客园博客已停止更新,博客地址:dyinigbleed.com

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