android,android NDK開發環境搭建(僅供參考)

來源:互聯網
上載者:User

標籤:android   style   blog   http   color   ar   java   for   strong   

/*****************************************************************************
工作需要,重新設定了 android+NDK 開發環境,記錄一下。

系統內容:Windows 7 64位 

建立時間:2014-10-17

個人隨筆,保留所有權。轉載請註明出處和作者erwin

*****************************************************************************/

下載三個檔案(1):JDK  Eclipse 和 NDK

 

                圖1

   以上三個檔案:adt-bundle-windows-x86_64-20140702.rar 包含eclipse和sdk,google官方已經打包好了,免安裝版本。

          android-ndk-r10c-windows-x86_64.exe 為NDK,自解壓檔案。

          jdk-8u25-windows-x64.exe為java jdk。

 

一、安裝jdk

  建立兩個環境變數:

  JDK_HOME=C:\Java\jdk

  ClassPath=%JAVA_HOME%lib\;

  向已有path環境變數中添加      .;%JAVA_HOME%\bin;

詳細設定方法

二、安裝Eclipse For Android:

  1.解壓 adt-bundle-windows-x86_64-20140702(對應具體版本號碼).

  2.點擊android-ndk-r10c-windows-x86_64.exe(對應具體版本號碼)會自解壓產生android-ndk-r10c這個目錄。

   1,2兩步執行完後2所示

                  圖2

  3.將以上兩個檔案放在自己建立目錄(ps:步驟3可略,個人習慣),我的放在 C:\Android 目錄下。

  4.開啟C:\Android\adt-bundle-windows-x86_64-20140702\eclipse.exe,3

                    圖3

  選擇eclipse 工作目錄,以個人喜好。

  5.必須先安裝ADT外掛程式,然後才能添加NDK,點擊菜單選項Help>Install New Software

                       Add                      

 將這個網址添加上去 https://dl-ssl.google.com/android/eclipse/  

                       OK

                       Next

                       ...

                       Finish

google官網參考添加方法,4

                  圖4

  6.重啟eclipse後,Windows>Preferences>Android>NDK,選擇NDK路徑,點擊OK,5

                   圖5

 

運行成功::::

參考連結:

Google官方ADT安裝方法

 

android,android NDK開發環境搭建(僅供參考)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.