ionic cordova prepare > cordova prepare √ Running com-6ren">
gpt4 book ai didi

android - 无法解析配置 ":_arm7DebugApkCopy"的所有依赖项

转载 作者:搜寻专家 更新时间:2023-11-01 09:32:23 24 4
gpt4 key购买 nike

每当我运行 ionic cordova run android 时,我都会收到以下错误:

> ionic cordova prepare
> cordova prepare
√ Running command - done!
Running command: "C:\Program Files\nodejs\node.exe" "C:\Users\Andy\Google Drive\Programming\moment\hooks\after_prepare\010_add_platform_class.js" "C:\Users\Andy\Google Drive\Programming\moment"
add to body class: platform-android
add to body class: platform-ios
> cordova run android
Running command: "C:\Program Files\nodejs\node.exe" "C:\Users\Andy\Google Drive\Programming\moment\hooks\after_prepare\010_add_platform_class.js" "C:\Users\Andy\Google Drive\Programming\moment"

add to body class: platform-android
ANDROID_HOME=C:\Users\Andy\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_111
Subproject Path: CordovaLib
null
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_55lwakjqtnxirerdx410ubatx.run(C:\Users\Andy\Google Drive\Programming\moment\platforms\android\build.gradle:139)
org.xwalk:xwalk_core_library:23+
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.

Incremental java compilation is an incubating feature.

The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_armv7DebugApkCopy'.
> Could not resolve org.xwalk:xwalk_core_library:23+.

BUILD FAILED
Required by:
project :
> Could not resolve org.xwalk:xwalk_core_library:23+.
> Failed to list versions for org.xwalk:xwalk_core_library.
> Unable to load Maven meta-data from https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml.
> Could not GET 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml'. Received status code 503 from server: Service Unavailable

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

Total time: 26.521 secs
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_armv7DebugApkCopy'.
> Could not resolve org.xwalk:xwalk_core_library:23+.
Required by:
project :
> Could not resolve org.xwalk:xwalk_core_library:23+.
> Failed to list versions for org.xwalk:xwalk_core_library.
> Unable to load Maven meta-data from https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml.
> Could not GET 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml'. Received status code 503 from server: Service Unavailable

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

[ERROR] An error occurred while running cordova run android (exit code 1).

我找到了 this post并且已经尝试卸载并重新安装 Android 支持存储库。这是我的 SDK 管理器:

enter image description here

enter image description here

我也将它添加到我的 buid.gradle

compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'

有没有人遇到过这个?修复方法是什么?

最佳答案

我遇到了同样的问题。看起来下载链接可能已损坏?

查看报告:https://crosswalk-project.org/jira/browse/XWALK-7553

关于android - 无法解析配置 ":_arm7DebugApkCopy"的所有依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46018240/

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