zoukankan      html  css  js  c++  java
  • cordova 问题汇总

    用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 Filesadt-bundle-windows-x86_64-20131030sdk

    PATH=%PATH%;%ANDROID_HOME% ools;%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.1in。

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

    [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

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

    找到文件 ...platformsandroidcordovalibuildersGradleBuilder.js

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

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

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

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

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

  • 相关阅读:
    APP兼容性测试
    APP本地服务安全测试
    接口安全测试
    Python之日志操作(logging)
    Python之json编码
    Python之配置文件读写
    windows10 修改远程连接本地端口
    ctf学习
    telnet常见的错误
    连接ssh中常见的错误代码
  • 原文地址:https://www.cnblogs.com/jiajinyi/p/7570647.html
Copyright © 2011-2022 走看看