Ionic Run Faild
I can run my ionic project on android device so far, but now this error is happening. I haven't changed anything in the project structure.
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 org.xwalk:xwalk_core_library_beta:13+.
Searched in the following locations:
https://repo1.maven.org/maven2/org/xwalk/xwalk_core_library_beta/maven-metadata.xml
https://repo1.maven.org/maven2/org/xwalk/xwalk_core_library_beta/
https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library_beta/maven-metadata.xml
file:/Applications/android-sdk/extras/android/m2repository/org/xwalk/xwalk_core_library_beta/maven-metadata.xml
file:/Applications/android-sdk/extras/android/m2repository/org/xwalk/xwalk_core_library_beta/
file:/Applications/android-sdk/extras/google/m2repository/org/xwalk/xwalk_core_library_beta/maven-metadata.xml
file:/Applications/android-sdk/extras/google/m2repository/org/xwalk/xwalk_core_library_beta/
Required by:
:android:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 20.525 secs
/Users/myuser/Projects/appname/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /Users/myuser/Projects/appname/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/myuser/Projects/appname/platforms/android/build.gradle,-PcdvBuildArch=x86,-Dorg.gradle.daemon=true
I removed android platform
and everything node_modules
and added them again, but still see this error. i can serve
my app and work fine on ios simulator.
source to share
I had the same problem, at runtime I was using VPN in ionic build android
and out Ionic run android
. this will help reach the component download website.
Also about maven
I run CMD command with "Run as administrator", it started loading maven and after that it works fine for me.
Before that I used to update JDK and JRE but did not change the result.
I upgraded from Windows 7 to Windows 10 directly and several times applications need to start using "Run as administrator"
source to share
I found a solution to the problem using google play service and Google Repository in Android SDK.
Please install the following dependency using Android SDK manager Google Play services
andGoogle Repository
After the installation is complete, you build your project and run it. It should work well now
source to share