用chrome进行调试:

https://jingyan.baidu.com/album/db55b609fde96d4ba30a2fa9.html?picindex=8

http://rensanning.iteye.com/blog/2018417

======华丽丽的分割线======

[Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually. Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to incl de path to valid SDK directory.] ERROR building one of the platforms: Error: cmd: Command failed with exit code

安装 android sdk,在 环境变量 -> 系统变量 中分别加入:

ANDROID_HOME=E:\Program Files\adt-bundle-windows-x86_64-20131030\sdk

PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools

======华丽丽的分割线======

Error: Could not find an installed version of Gradle either in Android Studio, or on your system to install the gradle wrapper. Please include gradle in your path, or install Android Studio

下载 gradle-4.1,解压到任意文件夹,在 环境变量 -> 系统变量 中的 Path 加入对应文件夹的位置,如:C:\gradle-4.1\bin\。

======华丽丽的分割线======

[Android SDK Platform 25].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go t
o http://d.android.com/r/studio-ui/export-licenses.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more l og output.

参考 http://blog.csdn.net/xlyrh/article/details/54667633

手动创建 licenses, 现在ANDROID_HOME文件夹下创建 licenses 文件夹,然后创建名为 android-sdk-licenses.txt 文件,写入 8933bad161af4178b1185d1a37fbf41ea5269c55,再去掉文件扩展名。

======华丽丽的分割线======

BUILD SUCCESSFUL in 26s

1 actionable task: 1 executed
Subproject Path: CordovaLib
Downloading https://services.gradle.org/distributions/gradle-3.3-all.zip

遇到这个一直下载不下来,下载不下来,下载不下来,就别等了,把它该成本地的就好了。

找到文件 ...\platforms\android\cordova\lib\builders\GradleBuilder.js

202行,将 ‘https\\://services.gradle.org/distributions/gradle-3.3-all.zip’ 修改为 ‘file:///C:\Users\MikeJia\Desktop\personal\cordova’

======华丽丽的分割线======

codova run android 不能正常启动安卓模拟器

如果之前同时安装过 visual studio 和 android studio ,那么系统可能存在两个安卓模拟器。需要手动修改环境变量,指向可用的 android sdk

======华丽丽的分割线======

最新文章

  1. java那些小事---用偶数做判断,不要用基数做判断
  2. MYSQL:使用\G参数改变输出结果集的显示方式
  3. hdu4734 F(x)
  4. Unix常用指令
  5. 前端与Server端(路由)
  6. 手把手教你用Python爬虫煎蛋妹纸海量图片
  7. Cocos2d-JS的屏幕适配方案
  8. 容器适配器之priority_queue
  9. javaweb学习总结(三十三)——使用JDBC对数据库进行CRUD
  10. mysql 自带全文检索
  11. 蓝桥网试题 java 基础练习 十六进制转十进制
  12. Python爬虫实践 -- 记录我的第一只爬虫
  13. java调用matlab绘图
  14. 解决No converter found for return value of type: class java.util.ArrayList
  15. python列表(list)的简单学习
  16. svg矢量图在flex布局中样式扭曲的问题
  17. A1101. Quick Sort
  18. hihocoder-1415 后缀数组三·重复旋律3 两个字符串的最长公共子串
  19. 访问 .obj文件,由于扩展配置问题而无法提供您请求的页面。如果该页面是脚本,请添加处理程序。如果应下载文件,请添加 MIME 映射
  20. wxpython 图像编程

热门文章

  1. Oracle:查询各组最新的一条记录
  2. qsub
  3. ucos中信号量 事件标志 消息队列都怎么用
  4. 【SVN】关于提交代码时的问题
  5. SpringCloud微服务基础
  6. 安装使用aria2下载百度网盘内容(转)
  7. vue slot 复用
  8. oracle错误(ORA:12154 ORA:01034 和 ORA:27101 ORA-18008 ORA-01081)
  9. mysql 聚集索引和非聚集索引问题(整理)
  10. ASP.NET Core 项目简单实现身份验证及鉴权