2017-09-02 45 views
2

每當我跑離子科爾多瓦運行Android的我得到以下錯誤:無法解析配置所有的依賴關係「:_arm7DebugApkCopy」

> 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' 

有沒有人遇到過嗎?什麼是修復?

回答

2

我遇到同樣的問題。看起來下載鏈接可能被破解/關閉?

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

+1

感謝這是非常有用的。很高興看到我不是唯一有問題的人。 – MatTaNg

+0

有沒有辦法解決這個問題? – MatTaNg

+0

我剛剛刪除了插件'ionic cordova plugin rm cordova-plugin-crosswalk-webview',因爲我讀過這個插件只對老版本的Android很重要。如果您的項目需要人行橫道,看起來人們已經在我上面發佈的問題跟蹤器中發佈了一些解決方法。 – mpkasp

相關問題