参考
http://cordova.apache.org/docs/en/5.4.0/guide/platforms/android/index.html
1.下载Android Studio
参考(需要代理访问):
http://developer.android.com/sdk/index.html
http://developer.android.com/sdk/installing/adding-packages.html
*国内镜像 http://www.androiddevtools.cn/
2.为了Cordova command-line tools 好用,需要配置环境变量
编辑 ~/.bash_profile文件,追加
export PATH=${PATH}:/Development/android-sdk/platform-tools:/Development/android-sdk/tools
使环境变量生效
source ~/.bash_profile
3.安装SDK Packages
打开 Android SDK Manager,(如果用命令行打开:cd到 sdk的 tools目录,执行android)
安装以下选项
- Android 5.1.1 (API 22) platform SDK
- Android SDK Build-tools version 19.1.0 or higher
- Android Support Repository (Extras)
4.设置模拟器
步骤略,如果直接使用手机测试的话,可以忽略此步。
分享到:
相关推荐
- 进入项目目录,使用命令 `cordova platform add android` 添加对Android的支持。 - 如果出现错误,可以尝试使用命令 `cordova plugin add cordova-plugin-console` 添加插件以解决问题。 #### 六、使用Android ...
Cordova简介 【http://cordova.apache.org/docs/en/latest/guide/overview/】 Cordova是一个开源的移动终端开发框架,它提供使用html,css,javascript 技术进行跨平台开发能力,并且封装了一组javascript接口实现...
npm i -g cordova cordova platform add browsercordova platform add android在浏览器上尝试 cordova run browser在设备上安装先决条件: ://cordova.apache.org/docs/en/latest/guide/platforms/android/ cordova ...
This practical guide shows you how to use Ionic’s tools and services to develop apps with HTML, CSS, and TypeScript, rather than rely on platform-specific solutions found in Android, iOS, and ...
This practical guide shows you how to use Ionic’s tools and services to develop apps with HTML, CSS, and TypeScript, rather than rely on platform-specific solutions found in Android, iOS, and ...
A step by step guide, filled with real-world examples to help you create hybrid mobile applications Who This Book Is For This book is for web developers who want to be productive in the mobile market ...
5. **平台准备**: 通过`cordova platform add`命令添加目标开发平台,如Android或iOS。 6. **编译和运行**: 使用`cordova build`命令编译项目,然后用`cordova run`命令在模拟器或真实设备上运行应用。 7. **调试和...
Use out-of-the-box Ionic functionalities, customize existing components, and add new components with this comprehensive, step-by-step guide What You Will Learn Authenticate users using an e-mail ...
- **Windows 10开发导航**:[Developing Universal Windows Apps with C# and XAML](https://docs.microsoft.com/zh-cn/windows/uwp/get-started/universal-application-platform-guide) #### Cordova - **简介**...
**PhoneGap 3.x Mobile Application Development Hotshot.2014.pdf** is a comprehensive guide designed to help developers create engaging and practical mobile applications for iOS and Android devices ...
You'll work with Cordova to support native functionalities on both iOS and Android. From there, you'll get to grips with using the default themes for each platform as well as customizing your own. ...