【转】BB10 SDK离线安装步骤
最近在配置 BlackBerry 10 开发环境. IDE安装完成之后发现在线安装SDK慢的蛋疼. 治疗蛋疼请看一下步骤(以 10.3.1.995 版本为例):
1, 下载以下文件(建议迅雷下载速度快一些):
- http://downloads.blackberry.com/upr/developers/update/bbndk/ndktargetrepo_10.3.1.995/packages//bbndk.win32.tools.10.3.1.12.zip
- http://downloads.blackberry.com/upr/developers/update/bbndk/ndktargetrepo_10.3.1.995/packages//bbndk.win32.libraries.10.3.1.995.zip
- http://downloads.blackberry.com/upr/developers/update/bbndk/ndktargetrepo_10.3.1.995/packages//bbndk.win32.documents.10.3.1.995.zip
- http://downloads.blackberry.com/upr/developers/update/bbndk/ndktargetrepo_10.3.1.995/packages//bbndk.win32.cshost.10.3.1.995.zip
- http://downloads.blackberry.com/upr/developers/update/bbndk/ndktargetrepo_10.3.1.995/packages//bbndk.win32.licenses.10.3.1.995.zip
- http://downloads.blackberry.com/upr/developers/update/bbndk/ndktargetrepo_10.3.1.995/packages//bbndk.win32.qconfigmk.10.3.1.995.zip
- http://downloads.blackberry.com/upr/developers/update/bbndk/ndktargetrepo_10.3.1.995/packages//bbndk.win32.samples.10.3.1.995.zip
2, 把下载文件全部解压到IDE根目录中:
3, 打开 C:\Users\%USERNAME%\AppData\Local\Research In Motion\BlackBerry Native SDK\qconfig 文件夹, 没有就创建. 然后新建文件:qnx_blackberry_native_development_kit_10.3.1.995.xml
文件内容为:
- <?xml version="1.0" ?>
- <qnxSystemDefinition>
- <installation>
- <base>E:/bbndk/install/bbndk</base>
- <name>BlackBerry 10 Native SDK 10.3.1.995</name>
- <host>E:/bbndk/install/bbndk/host_10_3_1_12/win32/x86</host>
- <target>E:/bbndk/install/bbndk/target_10_3_1_995/qnx6</target>
- <version>10.3.1.995</version>
- <annotation>
- <appInfo source="p2install">
- <detailedVersion>10.3.1.995</detailedVersion>
- </appInfo>
- </annotation>
- </installation>
- </qnxSystemDefinition>
注意: xml文件中用到的地址换成自己本机的地址即可.
最后启动你的IDE是不是发现已经安装完成. 就是这么简单!