㈠ android各个版本的NDK官方下载链接
NDK官方网站:https://developer.android.google.cn/ndk/downloads/index.html?hl=zh-cn
Google Android NDK官网
ndk_r14b (March 2017)
Windows 32 位: android-ndk-r14b-windows-x86.zip
SHA1校验:
Windows 64 位: android-ndk-r14b-windows-x86_64.zip
SHA1校验:
Mac OS X: android-ndk-r14b-darwin-x86_64.zip
SHA1校验:
linux 64 位 (x86): android-ndk-r14b-linux-x86_64.zip
SHA1校验:
ndk_r13b (Oct 2016)
Windows 32-bit : android-ndk-r13b-windows-x86.zip
Windows 64-bit: android-ndk-r13b-windows-x86_64.zip
Mac OS X : android-ndk-r13b-darwin-x86_64.zip
Linux: android-ndk-r13b-linux-x86_64.zip
ndk_r13 (Sept 2016)
Windows 32-bit : https://dl.google.com/android/repository/android-ndk-r13-windows-x86.zip
Windows 64-bit : https://dl.google.com/android/repository/android-ndk-r13-windows-x86_64.zip
Mac OS X : https://dl.google.com/android/repository/android-ndk-r13-darwin-x86_64.zip
Linux : https://dl.google.com/android/repository/android-ndk-r13-linux-x86_64.zip
ndk_r12 (June 2016)
Windows 32-bit : http://dl.google.com/android/repository/android-ndk-r12b-windows-x86.zip
Windows 64-bit : http://dl.google.com/android/repository/android-ndk-r12b-windows-x86_64.zip
Mac OS X 64-bit : http://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip
Linux 64-bit (x86) : http://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip
ndk_r11c (March 2016)
Windows 32-bit : http://dl.google.com/android/repository/android-ndk-r11c-windows-x86.zip
Windows 64-bit : http://dl.google.com/android/repository/android-ndk-r11c-windows-x86_64.zip
Mac OS X 64-bit : http://dl.google.com/android/repository/android-ndk-r11c-darwin-x86_64.zip
Linux 64-bit (x86) : http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip
ndk_r11b (March 2016)
Windows 32-bit : http://dl.google.com/android/repository/android-ndk-r11b-windows-x86.zip
Windows 64-bit : http://dl.google.com/android/repository/android-ndk-r11b-windows-x86_64.zip
Mac OS X 64-bit : http://dl.google.com/android/repository/android-ndk-r11b-darwin-x86_64.zip
Linux 64-bit (x86) : http://dl.google.com/android/repository/android-ndk-r11b-linux-x86_64.zip
ndk_r11 (March 2016)
Windows 32-bit : http://dl.google.com/android/repository/android-ndk-r11-windows-x86.zip
Windows 64-bit : http://dl.google.com/android/repository/android-ndk-r11-windows-x86_64.zip
Mac OS X 64-bit : http://dl.google.com/android/repository/android-ndk-r11-darwin-x86_64.zip
Linux 64-bit (x86) : http://dl.google.com/android/repository/android-ndk-r11-linux-x86_64.zip
ndk_r10e(Jan 2015)
Windows32-bit : http://dl.google.com/android/ndk/android-ndk-r10e-windows-x86.exe
Windows64-bit : http://dl.google.com/android/ndk/android-ndk-r10e-windows-x86_64.exe
MacOS X 64-bit : http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86.bin
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86.bin
Linux64-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin
ndk_r10d(December 2014)
Windows32-bit : http://dl.google.com/android/ndk/android-ndk-r10d-windows-x86.exe
Windows64-bit : http://dl.google.com/android/ndk/android-ndk-r10d-windows-x86_64.exe
MacOS X 64-bit : http://dl.google.com/android/ndk/android-ndk-r10d-darwin-x86_64.bin
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r10d-darwin-x86.bin
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86.bin
Linux64-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86_64.bin
ndk_r10c(October2014)
Windows32-bit : http://dl.google.com/android/ndk/android-ndk-r10c-windows-x86.exe
Windows64-bit : http://dl.google.com/android/ndk/android-ndk-r10c-windows-x86_64.exe
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r10c-darwin-x86.bin
MacOS X 64-bit : http://dl.google.com/android/ndk/android-ndk-r10c-darwin-x86_64.bin
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r10c-linux-x86.bin
Linux64-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r10c-linux-x86_64.bin
ndk_r10b(September2014)
Windows32-bit : http://dl.google.com/android/ndk/android-ndk32-r10b-windows-x86.zip
Windows64-bit : http://dl.google.com/android/ndk/android-ndk32-r10b-windows-x86_64.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk32-r10b-darwin-x86.tar.bz2
MacOS X 64-bit : http://dl.google.com/android/ndk/android-ndk32-r10b-darwin-x86_64.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk32-r10b-linux-x86.tar.bz2
Linux64-bit (x86) : http://dl.google.com/android/ndk/android-ndk32-r10b-linux-x86_64.tar.bz2
ndk_r10(July2014)
Windows32-bit : http://dl.google.com/android/ndk/android-ndk32-r10-windows-x86.zip
Windows64-bit : http://dl.google.com/android/ndk/android-ndk32-r10-windows-x86_64.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk32-r10-darwin-x86.tar.bz2
MacOS X 64-bit : http://dl.google.com/android/ndk/android-ndk32-r10-darwin-x86_64.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk32-r10-linux-x86.tar.bz2
Linux64-bit (x86) : http://dl.google.com/android/ndk/android-ndk32-r10-linux-x86_64.tar.bz2
ndk_r9d(March2014)
Windows32-bit : http://dl.google.com/android/ndk/android-ndk-r9d-windows-x86.zip
Windows64-bit : http://dl.google.com/android/ndk/android-ndk-r9d-windows-x86_64.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r9d-darwin-x86.tar.bz2
MacOS X 64-bit : http://dl.google.com/android/ndk/android-ndk-r9d-darwin-x86_64.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86.tar.bz2
Linux64-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86_64.tar.bz2
ndk_r9c(December2013)
Windows32-bit : http://dl.google.com/android/ndk/android-ndk-r9c-windows-x86.zip
Windows64-bit : http://dl.google.com/android/ndk/android-ndk-r9c-windows-x86_64.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r9c-darwin-x86.tar.bz2
MacOS X 64-bit : http://dl.google.com/android/ndk/android-ndk-r9c-darwin-x86_64.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r9c-linux-x86.tar.bz2
Linux64-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r9c-linux-x86_64.tar.bz2
ndk_r9b(October 2013)
Windows32-bit : http://dl.google.com/android/ndk/android-ndk-r9b-windows-x86.zip
Windows64-bit : http://dl.google.com/android/ndk/android-ndk-r9b-windows-x86_64.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86.tar.bz2
MacOS X 64-bit : http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86_64.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86.tar.bz2
Linux64-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64.tar.bz2
ndk_r9(July 2013)
Windows32-bit : http://dl.google.com/android/ndk/android-ndk-r9-windows-x86.zip
Windows64-bit : http://dl.google.com/android/ndk/android-ndk-r9-windows-x86_64.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r9-darwin-x86.tar.bz2
MacOS X 64-bit : http://dl.google.com/android/ndk/android-ndk-r9-darwin-x86_64.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r9-linux-x86.tar.bz2
Linux64-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r9-linux-x86_64.tar.bz2
ndk_r8e(March 2013)
Windows32-bit : http://dl.google.com/android/ndk/android-ndk-r8e-windows-x86.zip
Windows64-bit : http://dl.google.com/android/ndk/android-ndk-r8e-windows-x86_64.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r8e-darwin-x86.tar.bz2
MacOS X 64-bit : http://dl.google.com/android/ndk/android-ndk-r8e-darwin-x86_64.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r8e-linux-x86.tar.bz2
Linux64-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r8e-linux-x86_64.tar.bz2
Note :
NDKr8e is the first NDK with 32bit and 64bit releases. The prior ones were all32bit and didn’t have any suffix, so r8b would be:
ndk_r8d(December 2012)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r8d-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r8d-darwin-x86.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r8d-linux-x86.tar.bz2
ndk_r8C(November 2012)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r8C-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r8C-darwin-x86.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r8C-linux-x86.tar.bz2
ndk_r8b(July 2012)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r8b-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r8b-darwin-x86.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r8b-linux-x86.tar.bz2
ndk_r8(May 2012)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r8-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r8-darwin-x86.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r8-linux-x86.tar.bz2
ndk_r7c(April 2012)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r7c-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r7c-darwin-x86.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r7c-linux-x86.tar.bz2
ndk_r7b(February 2012)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r7b-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r7b-darwin-x86.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r7b-linux-x86.tar.bz2
ndk_r7(November 2011)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r7-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r7-darwin-x86.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r7-linux-x86.tar.bz2
ndk_r6b(August 2011)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r6b-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r6b-darwin-x86.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r6b-linux-x86.tar.bz2
ndk_r6(July 2011)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r6-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r6-darwin-x86.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r6-linux-x86.tar.bz2
ndk_r5c(June 2011)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r5c-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r5c-darwin-x86.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r5c-linux-x86.tar.bz2
ndk_r5b(January 2011)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r5b-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r5b-darwin-x86.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r5b-linux-x86.tar.bz2
ndk_r5(December 2010)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r5-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r5-darwin-x86.tar.bz2
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r5-linux-x86.tar.bz2
ndk_r4b(June 2010)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r4b-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r4b-darwin-x86.zip
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r4b-linux-x86.zip
ndk_r4(may 2010)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r4-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r4-darwin-x86.zip
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r4-linux-x86.zip
ndk_r3(March 2010)
Windows32-bit : https://dl.google.com/android/ndk/android-ndk-r3-windows.zip
MacOS X 32-bit : http://dl.google.com/android/ndk/android-ndk-r3-darwin-x86.zip
Linux32-bit (x86) : http://dl.google.com/android/ndk/android-ndk-r3-linux-x86.zip
㈡ 安卓的NDK和SDK是什么
可以用NDK开发,但不会替代SDK,因为NDK开发难度非常发,NDK有个巨大的麻烦就是现在有x86芯片的android手机的,用NDK就会需要提供两套APK,比较麻烦。Android平台的第三方应用程序均是依靠基于java的Dalvik特制虚拟机进行开发的。原生SDK(NDK)的可以让开发者更加直接的接触Android系统资源,并使用传统的C或C++语言编写程序,并在程序封包文件(.apks)中直接嵌入原生库文件。NDK主要用于一些具有大量逻辑计算和高性能的图像渲染的工作,比如我们要开发款大型的3D游戏,那么如果使用AndroidSDK通过Java来开发,速度和性能上很难满足我们的要求,这是就可以使用NDK通过C\C++来开发原生的程序来处理这些渲染,可以极大的提高我们游戏的性能。所以我们很有必要对NDK进行学习。
㈢ 如何设置android sdk ndk
android sdk 更新到 r23 时,eclipse 自带 adt版,里面并没有设置ndk的路径,从而导致了在ndk配置方面的难度。本文主要适合:
① 使用 android sdk r23 20140702 的朋友
② 使用 android ndk r10d 的朋友
③ 想知道andorid adt自带eclipse无法设置ndk路径的解决方法
④ 不知道如何使用代理ip的朋友
⑤ 不知道如何下载 android sdk, android ndk的朋友
http://jingyan..com/article/3ea51489e7a9bd52e61bbac7.html
㈣ android studio 项目在添加jni后,调试很慢
一、前提条件
1、Android studio版本最好2.0以上,在1.5上试过各种问题
2、Ndk版本最好是android-ndk-r10d,ndk的路径要在项目根目录下的local.properties下指定,例如ndk.dir=F:\android-ndk-r10d
二、加入gradle-experimental插件
1、打开项目根目录下的build.gradle文件,加入
classpath "com.android.tools.build:gradle-experimental:0.7.0"
如下图:
2、默认使用的是com.android.application这个插件,如果要进行jni调试最好换掉这个插件,也就是使用之前加入的gradle-experimental插件,据说不换好像也行,但是没试过。下面贴出具体的配置:
[java]view plain
applyplugin:'com.android.model.application'
model{
android{
compileSdkVersion24
buildToolsVersion"24.0.2"
defaultConfig.with{
minSdkVersion.apiLevel=15
targetSdkVersion.apiLevel=24
applicationId"com.exampl.myapplication"
}
}
android.buildTypes{
release{
minifyEnabled=false
proguardFiles.add(file('proguard-rules.pro'))
}
}
android.ndk{
moleName="hello-jni"
ldLibs.addAll(["android","log"])
stl="gnustl_shared"
/*
*
*cppFlags.add("-fno-rtti")
*cppFlags.add("-fno-exceptions")
*ldLibs.addAll(["android","log"])
*stl="system"
*/
}
android.proctFlavors{
create("arm"){
ndk.abiFilters.add("armeabi")
}
create("arm7"){
ndk.abiFilters.add("armeabi-v7a")
}
create("arm8"){
ndk.abiFilters.add("arm64-v8a")
}
create("x86"){
ndk.abiFilters.add("x86")
}
create("x86-64"){
ndk.abiFilters.add("x86_64")
}
create("mips"){
ndk.abiFilters.add("mips")
}
create("mips-64"){
ndk.abiFilters.add("mips64")
}
//Toincludeallcpuarchitectures,leavesabiFiltersempty
create("all")
}
}
dependencies{
compilefileTree(dir:'libs',include:['*.jar'])
testCompile'junit:junit:4.12'
compile'com.android.support:appcompat-v7:24.1.1'
compile'com.android.support:design:24.1.1'
}
㈤ cocos studio 打包APK 出现错误
具体做法。
1、安装必要的库和工具包,以及配置相关环境变量,请按照cocos2d-x-3.0rc0toolstoluaREADME.mdown说得去做,不做赘述。
2、写c++类(我测试用的是cocos2d-x-3.0rc0testslua-empty-.cpp)
3、写一个生成的python脚本,你不会写,没关系,我们会照猫画虎
1)进入目录cocos2d-x-3.0rc0toolstolua,复制一份genbindings.py,命名为genbindings_myclass.py
2)把生成目录制定到咱工程里去,打开genbindings_myclass.py把
?
1
output_dir = '%s/cocos/scripting/lua-bindings/auto' % project_root
改成
?
1
output_dir = '%s/tests/lua-empty-test/project/Classes/auto' % project_root
3)修改命令参数,把
?
cmd_args = { 'cocos2dx.ini' : ( 'cocos2d-x' , 'lua_cocos2dx_auto' ),
'cocos2dx_extension.ini' : ( 'cocos2dx_extension' , 'lua_cocos2dx_extension_auto' ),
'cocos2dx_ui.ini' : ( 'cocos2dx_ui' , 'lua_cocos2dx_ui_auto' ),
'cocos2dx_studio.ini' : ( 'cocos2dx_studio' , 'lua_cocos2dx_studio_auto' ),
'cocos2dx_spine.ini' : ( 'cocos2dx_spine' , 'lua_cocos2dx_spine_auto' ),
'cocos2dx_physics.ini' : ( 'cocos2dx_physics' , 'lua_coco
㈥ 如何改变ndk android
工具/原料
win8 x64
android-ndk-r10d-windows-x86_64.exe
com.android.ide.eclipse.ndk_23.0.2.1259578.jar
ubuntukylin-14.04-desktop-amd64
android-ndk-r10c-linux-x86_64.bin
前期准备
1
环境搭建的问题,建议大家最好看视频,虽然理论上android环境搭建很简单,但是存在了太多的陷阱,由于陷阱太多,细节太多帖子难免有些会漏掉一些类容,所以建议看视频,视频讲解的更全面一下谢谢!
2
android sdk环境搭建:
3
下载android ndk,
4
下eclipse支持ndk插件,
Windows下搭建
将下载下来的“android-ndk-r10c-windows-x86_64.exe”放到
“D:\Android“目录下面,然后双击安装,便会自动解压到"D:\Android"
下面
将中“comandroid.ide.eclipse.ndk_23.0.2.1259578.jar”下载到"D:\Android\adt-bundle-windows-x86_64-20140702\eclipse\plugins\com.android.ide.eclipse.ndk_23.0.2.1259578.jar"
① 启动"D:\Android\adt-bundle-windows-x86_64-20140702\eclipse\eclipse.exe"
② 选择菜单栏上的[Window->Perferences->Android->NDK]设置 NDK Loaction 为D:\Android\android-ndk-r10d;
添加环境变量 NDK_ROOT 为: D:\Android\android-ndk-r10d
在环境变量 PATH 下追加 :%NDK_ROOT%;
5
如果是在Windows上做开发的话,建议使用VisualGDB插件,方便进行调试,具体的话可以看“VisualGDB 环境搭建”