67919327@qq.com 发表于 2016-9-24 16:38:12

ionic项目新增crosswalk后,build failed 构建失败

ionic version:2.0.0
cordova version:6.3.1


由于ionic browser ...的broswer已经不存在,所以使用了ionic plugin add cordova-plugin-crosswalk-webview来添加crosswalk插件。


在ionic run android真机调试时显示下面的错误:


BUILD FAILEDTotal time: 18.757 secsFAILURE: 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 matches for com.android.support:support-v4:[13.0.0,) as no versions of com.android.support:support-v4 are available.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml
https://repo1.maven.org/maven2/com/android/support/support-v4/
https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml
https://jcenter.bintray.com/com/android/support/support-v4/
https://download.01.org/crosswalk/releases/crosswalk/android/maven2/com/android/support/support-v4/maven-metadata.xml
https://download.01.org/crosswalk/releases/crosswalk/android/maven2/com/android/support/support-v4/
Required by:
:android:unspecified > org.xwalk:xwalk_core_library:21.51.546.6
[*]Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
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 ':_armv7DebugCompile'.
Could not find any matches for com.android.support:support-v4:[13.0.0,) as no versions of com.android.support:support-v4 are available.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml
https://repo1.maven.org/maven2/com/android/support/support-v4/
https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml
https://jcenter.bintray.com/com/android/support/support-v4/
https://download.01.org/crosswalk/releases/crosswalk/android/maven2/com/android/support/support-v4/maven-metadata.xml
https://download.01.org/crosswalk/releases/crosswalk/android/maven2/com/android/support/support-v4/
Required by:
:android:unspecified > org.xwalk:xwalk_core_library:21.51.546.6
[*]Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

ionicwang 发表于 2016-9-25 10:51:08

这个确实不好用,那你就不要加这个了


用原生专场插件也不错
http://www.phonegap100.com/article-482-1.html
页: [1]
查看完整版本: ionic项目新增crosswalk后,build failed 构建失败