我几天前使用Crosswalk 18+成功构建了我的应用程序,今天我有这个错误:
* 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
我已经看到了另一个解决方案:Could not resolve all dependencies for configuration ':_armv7DebugCompile'
我已经从SDK安装了“Android支持存储库”和“Android支持库”,我也提供了所有可用的更新
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)
https://repo1.maven.org/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml =找不到我
Cordova config.xml(部分):
<preference name="xwalkVersion" value="18+" />
<preference name="android-targetSdkVersion" value="19"/>
谢谢
答案 0 :(得分:3)
<强>更新强>
出于某种原因,org.xwalk:xwalk_core_library_beta:18+对我不起作用(同样的错误):
<preference name="xwalkVersion" value="org.xwalk:xwalk_core_library_beta:18+" />
我查看了maven repo的最新版本: https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library_beta/maven-metadata.xml
我使用的是特定版本(最新18 +):
<preference name="xwalkVersion" value="org.xwalk:xwalk_core_library_beta:18.48.477.11" />
这对我有用。
答案 1 :(得分:0)
Crosswalk 18 stable未在maven资源库中发布,最新稳定版本为17.46.448.10:
您最初也可以使用Crosswalk测试版,但我们很快就会发布Crosswalk 18。一些例子:
cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_VERSION="org.xwalk:xwalk_core_library_beta:18+"
<preference name="xwalkVersion" value="org.xwalk:xwalk_core_library_beta:18+" />
如果您需要构建一个未在maven repo中发布的版本,我们可以将其安装到maven local repo:
wget https://download.01.org/crosswalk/releases/crosswalk/android/canary/<canary-version>/crosswalk-<canary-version>.aar
mvn install:install-file -DgroupId=org.xwalk -DartifactId=xwalk_core_library -Dversion=<canary-version> -Dpackaging=aar -Dfile=<crosswalk-path>/crosswalk-<canary-version>.aar -DgeneratePom=true