android - ionic 运行失败

标签 android cordova gradle ionic-framework

到目前为止,我可以在 Android 设备上完美地运行我的 ionic 项目,但现在发生了这个错误。我没有更改项目结构中的任何内容。

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_armv7DebugCompile'.
> Could not find any version that matches org.xwalk:xwalk_core_library_beta:13+.
 Searched in the following locations:
     https://repo1.maven.org/maven2/org/xwalk/xwalk_core_library_beta/maven-metadata.xml
     https://repo1.maven.org/maven2/org/xwalk/xwalk_core_library_beta/
     https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library_beta/maven-metadata.xml
     file:/Applications/android-sdk/extras/android/m2repository/org/xwalk/xwalk_core_library_beta/maven-metadata.xml
     file:/Applications/android-sdk/extras/android/m2repository/org/xwalk/xwalk_core_library_beta/
     file:/Applications/android-sdk/extras/google/m2repository/org/xwalk/xwalk_core_library_beta/maven-metadata.xml
     file:/Applications/android-sdk/extras/google/m2repository/org/xwalk/xwalk_core_library_beta/
 Required by:
     :android:unspecified

* 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: 20.525 secs

/Users/myuser/Projects/appname/platforms/android/cordova/node_modules/q/q.js:126
                throw e;
                      ^
Error code 1 for command: /Users/myuser/Projects/appname/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/myuser/Projects/appname/platforms/android/build.gradle,-PcdvBuildArch=x86,-Dorg.gradle.daemon=true

我删除了 android platform 和所有 node_modules 并再次添加它们,但我仍然看到这个错误。 我可以服务我的应用程序并在 IOS 模拟器上完美运行。

最佳答案

我遇到了同样的问题! 我通过以下步骤解决了它:

  • 使用 ionic browser revert android 删除浏览器
  • 再次安装crosswalk ionic browser add crosswalk
  • 部署应用ionic run android

关于android - ionic 运行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30962884/

相关文章:

gradle - 调试库

java - Gradle依赖问题,java.lang.NoClassDefFoundError,但是编译通过

Android 服务器异步通信

facebook - 我可以将JavaScript facebook SDK用于phonegap应用程序吗?

android - 从 Android 中的视频中获取视频帧

android - 发送 Blob 结果为空

iphone - 如何在不卡住 UI 的情况下安排多个本地通知?

maven - com.sun.tools.xjc.Plugin : Provider <plugin> not a subtype

android - 更改进度对话框背景

android - 应用内计费或许可?