crosswalk-project / cordova-plugin-crosswalk-webview

Crosswalk WebView Cordova Plugin (UNMAINTAINED)
https://crosswalk-project.org/blog/crosswalk-final-release.html
Apache License 2.0
944 stars 351 forks source link

cordova build android get error #158

Closed moh3n9595 closed 6 years ago

moh3n9595 commented 6 years ago

I try to use crooswalk but I get this error, where is the problem?

BUILD FAILED
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 1 mins 45.205 secs
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:23+.
     Required by:
         project :
      > Could not resolve org.xwalk:xwalk_core_library:23+.
         > Failed to list versions for org.xwalk:xwalk_core_library.
            > Unable to load Maven meta-data from https://jcenter.bintray.com/org/xwalk/xwalk_core_library/maven-metadata.xml.
               > Could not GET 'https://jcenter.bintray.com/org/xwalk/xwalk_core_library/maven-metadata.xml'.
                  > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/108.168.243.150] failed: Connection timed out: connect
      > Could not resolve org.xwalk:xwalk_core_library:23+.
         > 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'.
                  > Connect to download.01.org:443 [download.01.org/184.24.203.111] failed: Connection timed out: connect

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
rakuco commented 6 years ago

Could not GET 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml'.

Connect to download.01.org:443 [download.01.org/184.24.203.111] failed: Connection timed out: connect

Are you able to access the URL above in your browser? It looks like either a temporary network issue on our side or a problem with your connection (especially if you're behind a proxy).

VovanSuper commented 6 years ago

The url, actually isn't available:

An error occurred while processing your request.
Reference #30.f7e5f33f.1504296444.a9b77e3
LuizTokuhara commented 6 years ago

Yes the url is down... Same error message on request.

jhamil-conaca-coderoad-com commented 6 years ago

The same error persist.

Bodeclas commented 6 years ago

Same error here!

reyiyo commented 6 years ago

+1

RicardoBer commented 6 years ago

Me too

RicardoBer commented 6 years ago

This can solve the issue for latest crosswalk version.

Open platforms\android\cordova-plugin-crosswalk-webview\eqp-xwalk.gradle

change this:

dependencies { compile xwalkSpec }

to this one:

dependencies { compile 'org.xwalk:xwalk_core_library:23.53.589.4' //xwalkSpec }

CrossWalk is discontinued, so you can left this and avoid future checks.

blogui91 commented 6 years ago

Same issue here, ill try to do as you say @RicardoBer . thanks

blogui91 commented 6 years ago

@RicardoBer After some minutes with the issue that you said, the application compiled correctly, however it's the the solution :/

LuizTokuhara commented 6 years ago

Last week it was ok, today I got this problem... The sad thing is that I need to use the version 18 as I got some compatibility problems with the last version. @rakuco Do you got any info on what is the problem?

xiaohui-zhangxh commented 6 years ago

@RicardoBer this works for me, thanks.

RicardoBer commented 6 years ago

Execute some apk with your version of crosswalk, open chrome inspector, open console and type:

navigator.userAgent

You can see the version of crosswalk (latest one is 23.53.589.4).

Replace in the previous post.

RicardoBer commented 6 years ago

It' is down again the good way is not touch this, but it seem they don't make it up. I have this error again when create new android platform.

daggeto commented 6 years ago

Still have same problem. Event after compile 'org.xwalk:xwalk_core_library:23.53.589.4'. Also console agen shows nothing

Jun711 commented 6 years ago

just wonder if you guys are using cordova-plugin-crosswalk-webview@2.3.0? Thanks!

RicardoBer commented 6 years ago

Yes, the latest one, that is the reason for 23.53.589.4

Jun711 commented 6 years ago

I guess for now, I have use earlier version then.

RicardoBer commented 6 years ago

Please, read above, I put how to check your crosswalk version there.

liuya891012 commented 6 years ago

what can i do with @2.1.0? because i used other SDK,can not run in chrome with inspector

zhouzhongyuan commented 6 years ago

You can use this plugin temporarily:

cordova plugin add https://github.com/zhouzhongyuan/cordova-plugin-crosswalk-webview

It just fixed this error.

xiaohui-zhangxh commented 6 years ago

Actually, you don't need to change any code within plugin, just put below config to cordova config.yml:

<preference name="xwalkVersion" value="xwalk_core_library:23.53.589.4" />

See https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview in section Configure

zhongquan6554 commented 6 years ago

I have the same problem. Now I have solved it. Thank you. @RicardoBer

kaynz commented 6 years ago

Thanks @xiaohui-zhangxh

realyze commented 6 years ago

@xiaohui-zhangxh Hmm does that actually work for you? I'm getting

Could not GET
   'https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/23.53.589.4/xwalk_core_library-23.53.589.4.pom'.
   Received status code 503 from server: Service Unavailable

And the build is still broken.

kaynz commented 6 years ago

@realyze That's working for me :)

realyze commented 6 years ago

@kaynz Interesting. Maybe you have the xwalk version cached or something? Or maybe it depends on where you are... If the maven repo would consistently returns HTTP 503, I don't see how it would work for anyone.

kaynz commented 6 years ago

@realyze Yea, that's right. As soon as you clean your mvn cache, you won't get your builds done.

xiaohui-zhangxh commented 6 years ago

@realyze you can check your network with this command:

curl https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/23.53.589.4/xwalk_core_library-23.53.589.4.pom

On my side this URL returns correct XML file:

<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is generated automatically.
-->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.xwalk</groupId>
  <artifactId>xwalk_core_library</artifactId>
  <version>23.53.589.4</version>
  <packaging>aar</packaging>

  <!-- Crosswalk itself does not depend on external libraries, but it inherits
       some dependencies from Chromium itself. -->
  <dependencies>
    <dependency>
      <groupId>com.android.support</groupId>
      <artifactId>support-v4</artifactId>
      <version>[13.0.0,)</version> <!-- >= 13.0.0 -->
      <scope>runtime</scope>
    </dependency>
  </dependencies>
</project>
kaynz commented 6 years ago

@xiaohui-zhangxh

<HTML><HEAD><TITLE>Error</TITLE></HEAD><BODY>
An error occurred while processing your request.<p>
Reference&#32;&#35;30&#46;95e5f33f&#46;1504515797&#46;b086f0f
</BODY></HTML>
xiaohui-zhangxh commented 6 years ago

That's strange, I can get this URL correctly for now.

screenshot 2017-09-04 at 5 05 07 pm
kaynz commented 6 years ago

Okay, that's interesting. I'm getting HTTP 503 from my local computer. And HTTP 200 from my server (which is +-100km away from my position).

rakuco commented 6 years ago

I've closed several other tickets and would like to centralize all the discussions here. I've sent an email to both of our mailing lists.

We're trying to figure out what's going on, but this downtime was not caused by us; proper action might only be taken tomorrow though due Labor Day in the US.

QuentinRoy commented 6 years ago

@zhouzhongyuan https://github.com/zhouzhongyuan/cordova-plugin-crosswalk-webview does not work on mine.

cristianoaredes commented 6 years ago

Same error here, someone managed to solved the problem?

silvairsoares commented 6 years ago

erro crosswalk

What a sadness! I'm getting this same error here in Brazil.

realyze commented 6 years ago

I'm now getting HTTP 503 on CircleCI on https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml

realyze commented 6 years ago

The whole https://download.01.org domain seems to be down, actually.

MarshallMathersIII commented 6 years ago

what can i say

MarshallMathersIII commented 6 years ago

i use this url

dependencies {
compile 'org.xwalk:xwalk_core_library:23.53.589.4' //xwalkSpec
}

but the following error occurred image

zhouhaiou commented 6 years ago

me too

xiaohui-zhangxh commented 6 years ago

@MarshallMathersIII you should set android minSdkVersion to 16, see https://cordova.apache.org/docs/en/latest/config_ref/#preference

screenshot 2017-09-05 at 11 33 28 am
beevelop commented 6 years ago

Had a look at the 01.org DNS records and there might be a temporary workaround. There is a subdomain called origin-download.01.org which still serves the maven repository properly. But due to certificate problems I wasn't able to use without further configurations and workarounds. I therefore decided to provide a completely unofficial crosswalk mirror until this issue is resolved: https://xwalk.beevelop.com/crosswalk/releases/crosswalk/android/maven2/org/

I was able to get the CI running again by replacing download.01.org with xwalk.beevelop.com in the platforms/android/cordova-plugin-crosswalk-webview/foobar-xwalk.gradle file:

sed -i 's/download.01.org/xwalk.beevelop.com/g' platforms/android/cordova-plugin-crosswalk-webview/foobar-xwalk.gradle
TitanNano commented 6 years ago

@beevelop

>  sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I'm using your mirror but get this error.

EDIT: don't use https and it will download everything, since no certificates are checked.

beevelop commented 6 years ago

@TitanNano This is most likely caused by Java not trusting the Let's Encrypt certificates. From Java 8u101 onwards it should work properly (refer to https://stackoverflow.com/questions/34110426/does-java-support-lets-encrypt-certificates).

moh3n9595 commented 6 years ago

@beevelop tnx man, it's ok but not for future :)

rajild commented 6 years ago

+1

Website : https://download.01.org/crosswalk/releases/crosswalk/android/ is not accessible. Crosswalk files are not being downloaded by plugin.

FAILURE: Build failed with an exception.

rajild commented 6 years ago

@beevelop @TitanNano Your solution worked for me. Thanks

junvo commented 6 years ago

Can someone explain please how to use the mirror from @beevelop ?

I haven´t installed crosswalk yet. I tried to use the command ionic cordova plugin add cordova-plugin-crosswalk-webview and then place a version by creating a xwalk folder in \plugins\cordova-plugin-crosswalk-webview\platforms\android\src\org

but that didnt worked.

renanbandeira commented 6 years ago

I just added the sed command on before_build hook and it worked fine! Just remember to change foobar-xwalk.gradle to your name's app