问题描述
我成功地使用cordova建立我的应用程序,直到几天前与Crosswalk 18+,今天我有这个错误:
I successfully build my application with cordova until a few days ago with Crosswalk 18+, today I have this error:
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_armv7DebugCompile'.
> Could not resolve org.xwalk:xwalk_core_library:18+.
Required by:
:android:unspecified
> Failed to list versions for org.xwalk:xwalk_core_library.
> Unable to load Maven meta-data from https://repo1.maven.org/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml.
> Could not GET 'https://repo1.maven.org/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml'.
> peer not authenticated
> 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'.
> peer not authenticated
我看过这个解决方案:的所有依赖性
I've seen this other solution: Could not resolve all dependencies for configuration ':_armv7DebugCompile'
我已经从SDK安装了Android支持存储库和Android支持库,并且还提供了所有可用的更新
I installed already "Android support repository" and "Android support library" from SDK, I also made all available updates
Java版本:
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
=找不到我
Cordova config.xml(a part):
Cordova config.xml (a part):
<preference name="xwalkVersion" value="18+" />
<preference name="android-targetSdkVersion" value="19"/>
谢谢
推荐答案
UPDATE
由于某种原因,org.xwalk:xwalk_core_library_beta:18+ :
For some reason org.xwalk:xwalk_core_library_beta:18+ don't work for me (same error):
<preference name="xwalkVersion" value="org.xwalk:xwalk_core_library_beta:18+" />
我检查了maven仓库的最新版本:
I checked the latest version on maven repo: https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library_beta/maven-metadata.xml
我使用了特定版本(最新的18 +):
And i used a specific version (latest 18+):
<preference name="xwalkVersion" value="org.xwalk:xwalk_core_library_beta:18.48.477.11" />
这对我有用。
这篇关于Crosswalk无法解析配置'的所有依赖项:_armv7DebugCompile'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!