I have an existing app on ionic 1, making some improvements to it and trying to test it on my android device
ionic run android
I get this error due to crosswalk
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 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://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'. Received status code 403 from server: Forbidden
Which at this moment in time is throwing a 403. I tried building it with internet access turned off in case this is only necessary if it’s available, but it tries and fails (obviously) to get it.
Anyone know if there’s a way around this? Is this build dependent on an active internet connection and a remote xml file that may or may not be available?
@beck24 Glad you posted this!
I just met the exact same error (using Cordova directly).
It started 3 hours ago, let’s hope it’s just down and they will fix it (?)
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’.
Hello everyone,
It seems that at this moment their download servers are little unstable, and even with this change you sometimes get 403 errors from them.
If simply replacing the code,as i have suggested, is not working for you then this is exactly what I have done:
As most of you know, when we specify dependency in gradle file, It downloads that dependency from some server and use it in the project but if the “exact” dependency is already used in same/other project in our pc, It reuses the previously downloaded dependency instead of going out to server.
So I have opened my ionic app(by previously installed or generated apk) and inspected it using Chrome-Developer-Tool. Then I have typed following command in Console:
window.navigator.userAgent
And i have got :
“Mozilla/5.0 (Linux; Android 5.1; genymotion_vbox86p_5.1_150609_195503 Build/LMY47D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Crosswalk/22.52.561.4 Mobile Safari/537.36”
The response contains the latest Crosswalk version that my gradle build was using so I just used that specific version in the gradle file because I know that It has been already downloaded and it worked.
I hope these steps will be helpful to some of you to solve this issue.
The problem is I have an older apk which is signed and hence cannot debug in chrome. Is there any other way to find the version without debugging in chrome?
Just a thought after this nightmare. Can’t we just store the crosswalk libraries offline and use them while the build time to remove the network dependency?
I had this same error yesterday, and a few hours later (I restarted my Macbook in the meantime) the problem was simply gone, I didn’t do or change anything, it solved itself (maybe because of the reboot). I came across people having the same experience on Stackoverflow.