关于Android番外篇Eclipse配置androidsdk和eclipse配置安卓开发环境sdk的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于android--------Eclip
关于Android番外篇 Eclipse配置android sdk和eclipse配置安卓开发环境sdk的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于android -------- Eclipse下的NDK配置环境、Android NDK学习笔记15-配置AndroidStudio、Android SDK Android NDK Android Studio 官方下载地址、Android SDK Android Studio Android NDK 官方下载地址等相关知识的信息别忘了在本站进行查找喔。
本文目录一览:- Android番外篇 Eclipse配置android sdk(eclipse配置安卓开发环境sdk)
- android -------- Eclipse下的NDK配置环境
- Android NDK学习笔记15-配置AndroidStudio
- Android SDK Android NDK Android Studio 官方下载地址
- Android SDK Android Studio Android NDK 官方下载地址
Android番外篇 Eclipse配置android sdk(eclipse配置安卓开发环境sdk)
一、下载
1、android开发者官网
2、android中文网
下载sdk
二、安装
- 安装前先要安装java jdk
Oracle官网 - 安装过程基本就是点下一步,注意系统盘c盘如果容量比较小,就不要安装到系统盘,因为后面要下载许多东西,比较大.如下图我安装到d盘
第一步 配置环境变量
点这里详细介绍windows系统如何配置环境变量
注意android sdk环境变量需要在path后面添加\platform-tools和\tools两条路径
把这句;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools添加到系统变量Path后面就行了
在cmd命令窗口输入 android -h验证环境变量是否配置成功
第二步 使用
在安装目录Android\android-sdk下找到并打开SDK Manager.exe,如下图
安装sdk Tools ,API,Extras,这个下载量比较大,我一般是电脑晚上不关机慢慢下.ionic打包失败一般都是这里没下载全
根本无法下载?
如果你根本下载不了,可能是被墙的原因,我感觉这个不用翻墙,有人说需要翻墙…
那就配置一下镜像.配置方式如下图
镜像地址:http://mirrors.neusoft.edu.cn/有人说不用加http://,那你也试试
端口:80
其他
android -------- Eclipse下的NDK配置环境
NDK 全称是Native Development Kit,是一个让开发人员在Android应用中嵌入使用本地代码编写的组件的工具集
原生开发工具包 (NDK) 是一组可让您在 Android 应用中利用 C 和 C++ 代码的工具。 可用以从您自己的源代码构建,或者利用现有的预构建库。
相关介绍请看博客:
NDK下载地址:
https://developer.android.google.cn/ndk/downloads/index.html
下载完成后解压
在Eclipse中指定NDK路径
打开Eclipse--->windwos---->preference--->Android---->NDK
注意这里进入到build目录,不然你会发现Eclipse可能会有错误提示。
之后就是配置环境变量了
第一步:先创建一个根目录的系统环境变量NDK_ROOT
输入ndk安装路径
第二步:将NDK路径加入到变量Path中, %NDK_ROOT%;
之后就是验证是否成功了
Window+R --> cmd 打开控制台 输入ndk-build验证
恭喜你,你的NDK环境搭建成功了。
Android NDK学习笔记15-配置AndroidStudio
现在大家越来越多的使用AndroidStudio进行Android开发,那么今天就和大家一起交流一下AndroidStudio开发NDK的配置方法。
AndroidStudio配置NDK
通常我们有两种方法实现配置
1手动方式配置:
1.在Google的官方网站下载Android NDK的安装包
下载地址是http://developer.android.com/sdk/ndk/index.html,打开下载页面后选择的下载文件为android-ndk-r12-windows-x86_64.zip
下载后,将下载的zip文件解压缩到用户的Android开发目录中,这里我将Android NDK解压到D:\目录中,zip文件中包含一层目录,D:\android-ndk
2.配置NDK环境变量
- 打开我的电脑–属性–高级–环境变量
新建系统变量NDK_HOME
变量名:NDK_HOME
变量值:D:\android-ndk-r12b
选择“系统变量”中变量名为“Path”的环境变量,双击该变量,把NDK安装目录的绝对路径,添加到Path变量的值中,并使用半角的分号和已有的路径进行分隔。
变量名:Path
变量值:%NDK_HOME %;
完成以上操作后,NDK环境变量配置结束,我们测试环境变量的配置成功与否。在cmd命令行窗口输入“ndk-build”,输出以下信息即为配置正确。如图:
3.点击AndroidStudio菜单栏找到”File”-“Project Structure…”,打开界面
接着在Android NDK Location中,选择刚才解压的NDK系统文件路径,配置之后,在项目的local.properties配置文件中看到NDK路径,说明我们配置成功!
2插件方式配置:
1.点击AndroidStudio菜单栏找到”File”-“Settings”,打开界面
2.依次点击”Appearance & Behavior”-“System Settings”-“Android SDK”选项,然后点击切换到”SDK Tool”选项卡
3.将NDK左侧的复选框打钩
4.点击”Apply”按钮,然后在弹出窗口中点击”OK”,然后下载
5.等待下载安装完成,点击”Finish”按钮即可
配置Gradle脚本
解决$USE_DEPRECATED_NDK=true的问题
Error:Execution failed for task '':app:compileDebugNdk''.
> Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set "$USE_DEPRECATED_NDK=true" in gradle.properties to continue using the current NDK integration.
在gradle.properties中增加如下配置:
到此,AndroidStudio开发NDK的基本配置已经完成,接下来,我将以一个实际案例给大家讲解如何使用AndroidStudio开发NDK。
Android SDK Android NDK Android Studio 官方下载地址
如果下载速度很慢或者无法下载,有三种解决方法
1. 忍耐.
2. 使用 P2SP 下载工具,比如迅雷,百度云离线.
3. 你们懂得.
无法在线升级请看下边
sudo vi /etc/hosts
添加
74.125.206.93 dl-ssl.google.com
2014.7
ADT Bundle
http://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip
http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip
http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip
http://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip
http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip
SDK Tools Only
http://dl.google.com/android/android-sdk_r23.0.2-windows.zip
http://dl.google.com/android/installer_r23.0.2-windows.exe
http://dl.google.com/android/android-sdk_r23.0.2-macosx.zip
http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
Android Studio
http://dl.google.com/android/studio/install/0.8.6/android-studio-bundle-135.1339820-windows.exe
http://dl.google.com/android/studio/install/0.8.6/android-studio-bundle-135.1339820-mac.dmg
http://dl.google.com/android/studio/install/0.8.6/android-studio-bundle-135.1339820-linux.tgz
Android NDK
http://dl.google.com/android/ndk/android-ndk32-r10-windows-x86.zip
http://dl.google.com/android/ndk/android-ndk32-r10-windows-x86_64.zip
http://dl.google.com/android/ndk/android-ndk32-r10-darwin-x86.tar.bz2
http://dl.google.com/android/ndk/android-ndk32-r10-darwin-x86_64.tar.bz2
http://dl.google.com/android/ndk/android-ndk32-r10-linux-x86.tar.bz2
http://dl.google.com/android/ndk/android-ndk32-r10-linux-x86_64.tar.bz2
http://dl.google.com/android/ndk/android-ndk64-r10-windows-x86.zip
http://dl.google.com/android/ndk/android-ndk64-r10-windows-x86_64.zip
http://dl.google.com/android/ndk/android-ndk64-r10-darwin-x86.tar.bz2
http://dl.google.com/android/ndk/android-ndk64-r10-darwin-x86_64.tar.bz2
http://dl.google.com/android/ndk/android-ndk64-r10-linux-x86.tar.bz2
http://dl.google.com/android/ndk/android-ndk64-r10-linux-x86_64.tar.bz2
http://dl.google.com/android/ndk/android-ndk-r10-cxx-stl-libs-with-debug-info.zip
2014.6
Android Studio 0.8
http://dl.google.com/android/studio/install/0.8.0/android-studio-bundle-135.1245622-windows.exe
http://dl.google.com/android/studio/install/0.8.0/android-studio-bundle-135.1245622-mac.dmg
http://dl.google.com/android/studio/install/0.8.0/android-studio-bundle-135.1245622-linux.tgz
Android SDK only r23
http://dl.google.com/android/android-sdk_r23-windows.zip
http://dl.google.com/android/installer_r23-windows.exe
http://dl.google.com/android/android-sdk_r23-macosx.zip
http://dl.google.com/android/android-sdk_r23-linux.tgz
ADT Bundle r23
http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140624.zip
http://dl.google.com/android/adt/adt-bundle-linux-x86-20140624.zip
http://dl.google.com/android/adt/adt-bundle-windows-x86-20140624.zip
http://dl.google.com/android/adt/adt-bundle-windows-x86-20140624.zip
http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140624.zip
Android NDK r9d
http://dl.google.com/android/ndk/android-ndk-r9d-windows-x86.zip
http://dl.google.com/android/ndk/android-ndk-r9d-windows-x86_64.zip
http://dl.google.com/android/ndk/android-ndk-r9d-darwin-x86.tar.bz2
http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86.tar.bz2
http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86_64.tar.bz2
http://dl.google.com/android/ndk/android-ndk-r9d-cxx-stl-libs-with-debug-info.zip
Android NDK r6b
Windows
http://dl.google.com/android/ndk/android-ndk-r6b-windows.zip
Mac OS X(intel)
http://dl.google.com/android/ndk/android-ndk-r6b-darwin-x86.tar.bz2
Linux
http://dl.google.com/android/ndk/android-ndk-r6b-linux-x86.tar.bz2
Android SDK 3.2
Windows
http://dl.google.com/android/android-sdk_r12-windows.zip
http://dl.google.com/android/installer_r12-windows.exe
Mac OS X (intel)
http://dl.google.com/android/android-sdk_r12-mac_x86.zip
Linux(i386)
http://dl.google.com/android/android-sdk_r12-linux_x86.tgz
Android NDK r6
Windows
http://dl.google.com/android/ndk/android-ndk-r6-windows.zip
Mac OS X(intel)
http://dl.google.com/android/ndk/android-ndk-r6-darwin-x86.tar.bz2
Linux 32/64-bit (x86)
http://dl.google.com/android/ndk/android-ndk-r6-linux-x86.tar.bz2
Android SDK 3.1
Windows
http://dl.google.com/android/android-sdk_r11-windows.zip
http://dl.google.com/android/installer_r11-windows.exe
Mac OS X(intel)
http://dl.google.com/android/android-sdk_r11-mac_x86.zip
Linux(i386)
http://dl.google.com/android/android-sdk_r11-linux_x86.tgz
Android NDK r5b
Windows
http://dl.google.com/android/ndk/android-ndk-r5b-windows.zip
Mac OS X(intel)
http://dl.google.com/android/ndk/android-ndk-r5b-darwin-x86.tar.bz2
Linux
http://dl.google.com/android/ndk/android-ndk-r5b-linux-x86.tar.bz2
Android SDK 3.0
Windows
http://dl.google.com/android/installer_r10-windows.exe
http://dl.google.com/android/android-sdk_r10-windows.zip
Mac OS X(intel)
http://dl.google.com/android/android-sdk_r10-mac_x86.zip
Linux(i386)
http://dl.google.com/android/android-sdk_r10-linux_x86.tgz
Android SDK 2.3
Windows
http://dl.google.com/android/android-sdk_r08-windows.zip
http://dl.google.com/android/installer_r08-windows.exe
Linux (i386)
http://dl.google.com/android/android-sdk_r08-linux_86.tgz
MAC OS X (intel)
http://dl.google.com/android/android-sdk_r08-mac_86.zip
Android NDK r5
Windows
http://dl.google.com/android/ndk/android-ndk-r5-windows.zip
Mac OS X (intel) r5
http://dl.google.com/android/ndk/android-ndk-r5-darwin-x86.tar.bz2
Linux 32/64-bit (x86) r5
http://dl.google.com/android/ndk/android-ndk-r5-linux-x86.tar.bz2
Android SDK Android Studio Android NDK 官方下载地址
2014.12
Android Studio
https://dl.google.com/dl/android/studio/install/1.0.1/android-studio-bundle-135.1641136.exe
https://dl.google.com/dl/android/studio/install/1.0.1/android-studio-ide-135.1641136.exe
https://dl.google.com/dl/android/studio/ide-zips/1.0.1/android-studio-ide-135.1641136-windows.zip
https://dl.google.com/dl/android/studio/install/1.0.1/android-studio-ide-1641136.dmg
https://dl.google.com/dl/android/studio/ide-zips/1.0.1/android-studio-ide-135.1641136-linux.zip
SDK Tools only
http://dl.google.com/android/installer_r24.0.2-windows.exe
http://dl.google.com/android/android-sdk_r24.0.2-windows.zip
http://dl.google.com/android/android-sdk_r24.0.2-macosx.zip
http://dl.google.com/android/android-sdk_r24.0.2-linux.tgz
NDK
http://dl.google.com/android/ndk/android-ndk-r10d-windows-x86.exe
http://dl.google.com/android/ndk/android-ndk-r10d-windows-x86_64.exe
http://dl.google.com/android/ndk/android-ndk-r10d-darwin-x86.bin
http://dl.google.com/android/ndk/android-ndk-r10d-darwin-x86_64.bin
http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86.bin
http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86_64.bin
2014.7.2
ADT Bundle
http://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip
http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip
http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip
http://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip
http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip
SDK Tools Only
http://dl.google.com/android/android-sdk_r23.0.2-windows.zip
http://dl.google.com/android/installer_r23.0.2-windows.exe
http://dl.google.com/android/android-sdk_r23.0.2-macosx.zip
http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
Android Studio
http://dl.google.com/android/studio/install/0.8.6/android-studio-bundle-135.1339820-windows.exe
http://dl.google.com/android/studio/install/0.8.6/android-studio-bundle-135.1339820-mac.dmg
http://dl.google.com/android/studio/install/0.8.6/android-studio-bundle-135.1339820-linux.tgz
Android NDK
http://dl.google.com/android/ndk/android-ndk32-r10-windows-x86.zip
http://dl.google.com/android/ndk/android-ndk32-r10-windows-x86_64.zip
http://dl.google.com/android/ndk/android-ndk32-r10-darwin-x86.tar.bz2
http://dl.google.com/android/ndk/android-ndk32-r10-darwin-x86_64.tar.bz2
http://dl.google.com/android/ndk/android-ndk32-r10-linux-x86.tar.bz2
http://dl.google.com/android/ndk/android-ndk32-r10-linux-x86_64.tar.bz2
http://dl.google.com/android/ndk/android-ndk64-r10-windows-x86.zip
http://dl.google.com/android/ndk/android-ndk64-r10-windows-x86_64.zip
http://dl.google.com/android/ndk/android-ndk64-r10-darwin-x86.tar.bz2
http://dl.google.com/android/ndk/android-ndk64-r10-darwin-x86_64.tar.bz2
http://dl.google.com/android/ndk/android-ndk64-r10-linux-x86.tar.bz2
http://dl.google.com/android/ndk/android-ndk64-r10-linux-x86_64.tar.bz2
http://dl.google.com/android/ndk/android-ndk-r10-cxx-stl-libs-with-debug-info.zip
如果下载速度很慢或者无法下载,有三种解决方法
1. 忍耐.
2. 使用 P2SP 下载工具,比如迅雷,百度云离线.
3. 你们懂得.
无法在线升级请看下边
sudo vi /etc/hosts
添加
XXX.XXX.XXX.XXX dl-ssl.google.com
上边的 IP 地址从 http://ping.chinaz.com/ 得到
我们今天的关于Android番外篇 Eclipse配置android sdk和eclipse配置安卓开发环境sdk的分享就到这里,谢谢您的阅读,如果想了解更多关于android -------- Eclipse下的NDK配置环境、Android NDK学习笔记15-配置AndroidStudio、Android SDK Android NDK Android Studio 官方下载地址、Android SDK Android Studio Android NDK 官方下载地址的相关信息,可以在本站进行搜索。
本文标签: