gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 15:01:20 26 4
gpt4 key购买 nike

我正在尝试在 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com