㈠ 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 環境搭建」