android - 在 Android 模拟器上运行时出现 Google Chrome 应用程序错误

标签 android google-chrome cordova google-chrome-app cordova-chrome-app

我正在尝试在 Android 模拟器上运行一个简单的 Hello chrome 应用程序。运行时导航到应用程序目录后

cca emulate android

一段时间后我得到一个错误:

这是完整的 cmd 行响应:

cca v0.4.1
Running command: /home/jay/HelloChromeAppOnAndroid/platforms/android/cordova/run --emulator
WARNING : no emulator specified, defaulting to myAvd
Waiting for emulator...
emulator: emulator window was out of view and was recentered

Booting up emulator (this may take a while).......................BOOT COMPLETE

FAILURE: Build failed with an exception.

* Where:
Build file '/home/jay/HelloChromeAppOnAndroid/platforms/android/build.gradle' line: 175

* What went wrong:
A problem occurred evaluating root project 'android'.
> No match found

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

BUILD FAILED

Total time: 3.074 secs

/home/jay/HelloChromeAppOnAndroid/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
Error code 1 for command: /home/jay/HelloChromeAppOnAndroid/platforms/android/gradlew with args: assembleArmv7Debug,-b,/home/jay/HelloChromeAppOnAndroid/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-x,lint,-x,lintVitalX86Release,-x,lintVitalArmv7Release,-x,compileLint,-x,copyReleaseLint,-x,copyDebugLint
Error: /home/jay/HelloChromeAppOnAndroid/platforms/android/cordova/run: Command failed with exit code 8
    at ChildProcess.whenDone (/home/jay/.nvm/v0.10.32/lib/node_modules/cca/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

最佳答案

看来问题已经解决了。我在 GitHub 中发布了一个问题现在已经解决了。

你要做的就是

npm install -g cca

更新工具链。

关于android - 在 Android 模拟器上运行时出现 Google Chrome 应用程序错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26342480/

相关文章:

android - Vector Drawables 在 ANDROID NOUGAT 上显示模糊图像

java - 为什么 Android 的 AsyncTask 没有实现 Future?

android - ICS 中的 SimpleCursorAdapter

javascript - 如何更改 chromes 日期解析/排序以匹配 ff/ie 日期解析?

javascript - 将变量传递给函数回调

android - 我可以通过调用另一个类的方法将新列动态添加到 sqlite 表吗?

javascript - 使用鼠标滚轮增加输入值

javascript - Google Chrome 中的部分内容请求

javascript - 是否可以在同一个盒子上安装多个 framework7?

android - GIT:两个不同的存储库和一个共享文件夹