Crosswalk error on android build


#1

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

It appears to be trying to fetch some data from this url: https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml

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?


Build error - crosswalk unable to load Maven meta-data
#2

@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 (?)


#3

For me this started yesterday…
I can’t even get access to www.crosswalk-project.org.


#4

Thank you for bringing this up, we having the same issue, can someone please advise an alternative to bypass this issue? Also, why exactly is it making a call to https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml

BUILD FAILED

Total time: 26.05 secs

Could not resolve all dependencies for configuration ‘:_armv7DebugApkCopy’.
Could not resolve org.xwalk:xwalk_core_library:22+.
Required by:
:android:unspecified
Could not resolve org.xwalk:xwalk_core_library:22+.
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

  • 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 ‘:_armv7DebugApkCopy’.
Could not resolve org.xwalk:xwalk_core_library:22+.
Required by:
:android:unspecified
Could not resolve org.xwalk:xwalk_core_library:22+.
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


#5

I had the same error 1 hour ago and i have found a solution:

Define fixed cross-walk version in android gradle file as followed:

In your platforms\android\cordova-plugin-crosswalk-webview folder, there is a gradle file.
-> Open the file and find following code:

dependencies {
compile xwalkSpec
}

-> replace the code with following:

dependencies {
compile ‘org.xwalk:xwalk_core_library:22.52.561.4’ //xwalkSpec
}

And try to build it with

ionic run android

It works for me.


#6

I just have this error i cant even access to https://download.01.org/

i try replacing the dependencies code but doesnt work for me :frowning:


#7

It works for me, thanks.


#8

Apparently they are working on it
https://twitter.com/xwalk_project/with_replies


#9

@rohit_gupta:

dependencies {
compile xwalkSpec
}
-> replace the code with following:

dependencies {
compile ‘org.xwalk:xwalk_core_library:22.52.561.4’ //xwalkSpec
}

sorry mate. This did not work for me. How exactly I need to follow these steps. Please let me know as my UAT has started from today.

Thank You.


#10

dependencies {
compile xwalkSpec
}
-> replace the code with following:

dependencies {
compile ‘org.xwalk:xwalk_core_library:22.52.561.4’ //xwalkSpec
}

sorry mate. This did not work for me. How exactly I need to follow these steps. Please let me know

Thank You.


#11

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.


#12

@rohit_gupta Thank you pal. It worked for me.
Currently, they are working on this issue
https://crosswalk-project.org/jira/browse/XWALK-6197


#13

Thank u @rohit_gupta…Its helped me…


#14

@rohit_gupta

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?

Thanks


#15

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?


#16

Hi All, I was facin exactly the same issue, I have solved the issue by replacing/adding this line in the config.xml file

<preference name="xwalkVersion" value="22+"/>

Let me know if that works for any of you.


#17

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.


#18

Yeah, there was an outage on crosswalk infrastructure, meaning the whole site plus the download server were down.
It went back up at around 15:00 UTC.


#19

Yes I already figured that much …


#20

Don’t worry about. This is a piece of cake for me.
Let’s you see.

Define fixed cross-walk version in android gradle file as followed:

In your platforms\android\cordova-plugin-crosswalk-webview folder, there is a gradle file.
-> Open the file and find following code:

dependencies {
compile xwalkSpec
}
-> replace the code with following:

dependencies {
compile ‘org.xwalk:xwalk_core_library:22.52.561.4’ //xwalkSpec
}
And try to build it with

ionic run android