简体   繁体   English

人行横道:为Android API 15构建

[英]Crosswalk : build for android api 15

I need to target an android 4.0.4 device with crosswalk, on a ionic app. 我需要在离子应用程序上定位带有人行横道的android 4.0.4设备。

In my config.xml, I have : 在我的config.xml中,我有:

<preference name="android-minSdkVersion" value="15"/>

With ionic run android , crosswalk run into an error and ask me for a minimal android version of 16. 使用ionic run android ,人行横道出现错误,并要求我提供最低Android版本16。

Is there a way to get it working with the android api 15 ? 有没有办法让它与android api 15一起使用? Thanks 谢谢

---EDIT With Ionic browser list I have the following version of crosswalk avalaible. --- EDIT使用Ionic browser list我可以使用以下版本的人行横道。

Available - Crosswalk - ionic browser add crosswalk
             Version 8.37.189.14 Published
             Version 9.38.208.10 Published
             Version 10.39.235.15 Published
             Version 11.40.277.7 Published
             Version 12.41.296.5 Published
    (beta)   Version 13.42.319.6 Published
    (canary) Version 14.42.334.0 Published

I tried all versions, all of them get the same error. 我尝试了所有版本,但所有版本均收到相同的错误。 I noticed that they all install this plugin cordova-plugin-crosswalk-webview 2.1.0 , that might be a part of the problem ? 我注意到他们都安装了该插件cordova-plugin-crosswalk-webview 2.1.0 ,这可能是问题的一部分吗?

You could use a version 19 or earlier of Crosswalk, I suppose, but as of version 20, the Crosswalk team no longer supports Android < 4.1. 我想您可以使用Crosswalk的19版或更早版本,但是从20版开始,Crosswalk团队不再支持Android <4.1。 See https://crosswalk-project.org/blog/deprecate-40.html for the announcement. 有关公告,请参见https://crosswalk-project.org/blog/deprecate-40.html

I finally found the solution here . 我终于在这里找到了解决方案。 1/ add <preference name="xwalkVersion" value="17+" /> to config.xml 2/ follow the badboyunited solution : remove android platform, add crosswalk plugin via cordova, add android platform. 1 /将<preference name="xwalkVersion" value="17+" />到config.xml 2 /按照badboyunited解决方案:删除android平台,通过cordova添加crosswalk插件,添加android平台。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM