Lately I've been playing around with mobile app development using Ionic V2 (with Cordova). While testing it on my older mobile device (Galaxy S4) I noticed that the native web view (Android browser) seems to be slow and didn't play any of the Material Design animations. I found CrossWalk and started trying to add it to my project:
> ionic browser add crosswalk
I was able to get older versions working (14, 15), but when trying to use CrossWalk 16, I ran into an error:
ANDROID_HOME=/home/me/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
embedded
org.xwalk:xwalk_core_library:16+
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 version that matches com.android.support:support-v4:[13.0.0,).
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://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/
file:/home/me/android-sdk-linux/extras/google/m2repository/com/android/support/support-v4/maven-metadata.xml
file:/home/me/android-sdk-linux/extras/google/m2repository/com/android/support/support-v4/
Required by:
:android:unspecified > org.xwalk:xwalk_core_library:16.45.421.19
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Solution:
It turned out I didn't have everything I needed installed from the Android SDK Manager. I found that I needed to have from Extra:
- Android Support Library
- Google Repository
- Local Maven repository for Support Library
Once I had these installed, my build was able to succeed and the app feels slightly more responsive but I still do not get Material Design animations.
No comments:
Post a Comment